From c953d6409dffd476370ba639118cba97bcda2f35 Mon Sep 17 00:00:00 2001 From: Max Kellermann Date: Tue, 20 Oct 2009 21:01:55 +0200 Subject: mapper, update, ...: use g_build_filename(), G_DIR_SEPARATOR, ... Try to be as portable as possible, use GLib path name functions and macros. --- src/decoder_thread.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/decoder_thread.c') 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(); -- cgit v1.2.3