]> git.sesse.net Git - vlc/commitdiff
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 bc2e119f1097c4f78842466aff6d3d7768bc9632..27e1de68f1f2b5a89ec3bac1f18193e49757fe90 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