xspf muxer: determinates correctly if we're handling a file:// uri, and so produce...
authorRafaël Carré <funman@videolan.org>
Sun, 18 Nov 2007 20:56:44 +0000 (20:56 +0000)
committerRafaël Carré <funman@videolan.org>
Sun, 18 Nov 2007 20:56:44 +0000 (20:56 +0000)
modules/misc/playlist/xspf.c

index bc2e119..27e1de6 100644 (file)
@@ -307,10 +307,11 @@ static char *assertUTF8URI( char *psz_name )
         i_delim++; /* skip the ':' */
         strncpy( psz_ret, psz_s, i_delim );
         psz_d = psz_ret + i_delim;
-        psz_s += i_delim;
 
         if( !strncmp( psz_s, "file://", 7 ) )
             b_uri_is_file = VLC_TRUE;
+
+        psz_s += i_delim;
     }
     /* assume "file" scheme if no scheme-part is included */
     else