aboutsummaryrefslogtreecommitdiffstats
path: root/src/decoder
diff options
context:
space:
mode:
authorMax Kellermann <max@duempel.org>2015-03-05 09:13:51 +0100
committerMax Kellermann <max@duempel.org>2015-03-05 10:07:07 +0100
commit983078992d4189c08ce67bcae3b0658534aa45e2 (patch)
tree75564d870036645a2be504f90781e87b9af25b2f /src/decoder
parent81059f80d8836294dae9ef85191f01f64949b59c (diff)
downloadmpd-983078992d4189c08ce67bcae3b0658534aa45e2.tar.gz
mpd-983078992d4189c08ce67bcae3b0658534aa45e2.tar.xz
mpd-983078992d4189c08ce67bcae3b0658534aa45e2.zip
fs/NarrowPath: new utility class
Diffstat (limited to 'src/decoder')
-rw-r--r--src/decoder/plugins/FlacDecoderPlugin.cxx5
1 files changed, 3 insertions, 2 deletions
diff --git a/src/decoder/plugins/FlacDecoderPlugin.cxx b/src/decoder/plugins/FlacDecoderPlugin.cxx
index 1455f7084..410af9267 100644
--- a/src/decoder/plugins/FlacDecoderPlugin.cxx
+++ b/src/decoder/plugins/FlacDecoderPlugin.cxx
@@ -24,6 +24,7 @@
#include "FlacMetadata.hxx"
#include "OggCodec.hxx"
#include "fs/Path.hxx"
+#include "fs/NarrowPath.hxx"
#include "util/Error.hxx"
#include "Log.hxx"
@@ -84,7 +85,7 @@ flac_scan_file(Path path_fs,
const struct tag_handler *handler, void *handler_ctx)
{
FlacMetadataChain chain;
- if (!chain.Read(path_fs.c_str())) {
+ if (!chain.Read(NarrowPath(path_fs))) {
FormatDebug(flac_domain,
"Failed to read FLAC tags: %s",
chain.GetStatusString());
@@ -301,7 +302,7 @@ oggflac_scan_file(Path path_fs,
const struct tag_handler *handler, void *handler_ctx)
{
FlacMetadataChain chain;
- if (!chain.ReadOgg(path_fs.c_str())) {
+ if (!chain.ReadOgg(NarrowPath(path_fs))) {
FormatDebug(flac_domain,
"Failed to read OggFLAC tags: %s",
chain.GetStatusString());