diff options
author | Max Kellermann <max@duempel.org> | 2009-10-20 21:01:55 +0200 |
---|---|---|
committer | Max Kellermann <max@duempel.org> | 2009-10-20 21:01:55 +0200 |
commit | c953d6409dffd476370ba639118cba97bcda2f35 (patch) | |
tree | 5920d5d03757ae9fd6fd753dcef7532d07bff96b /src/decoder_thread.c | |
parent | 447e4d3583d3394a25f0fb186f50cea45dd7f797 (diff) | |
download | mpd-c953d6409dffd476370ba639118cba97bcda2f35.tar.gz mpd-c953d6409dffd476370ba639118cba97bcda2f35.tar.xz mpd-c953d6409dffd476370ba639118cba97bcda2f35.zip |
mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ...
Try to be as portable as possible, use GLib path name functions and
macros.
Diffstat (limited to 'src/decoder_thread.c')
-rw-r--r-- | src/decoder_thread.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/decoder_thread.c b/src/decoder_thread.c index 5140f2ec3..846b12353 100644 --- a/src/decoder_thread.c +++ b/src/decoder_thread.c @@ -74,7 +74,7 @@ decoder_file_decode(const struct decoder_plugin *plugin, assert(decoder->stream_tag == NULL); assert(decoder->decoder_tag == NULL); assert(path != NULL); - assert(path[0] == '/'); + assert(g_path_is_absolute(path)); assert(dc.state == DECODE_STATE_START); decoder_unlock(); |