]> git.sesse.net Git - vlc/commitdiff
Preparse file items which don't begin with 'file:'. Patch by Antoine Lejeune.
authorRafaël Carré <funman@videolan.org>
Sat, 15 Dec 2007 09:39:55 +0000 (09:39 +0000)
committerRafaël Carré <funman@videolan.org>
Sat, 15 Dec 2007 09:39:55 +0000 (09:39 +0000)
src/playlist/engine.c

index 809f4581d79573bd42a3cd95e78c68bd05c6b08a..a9327891194d24ba7aec4a71488e89ff8bbf181f 100644 (file)
@@ -485,7 +485,7 @@ void playlist_PreparseLoop( playlist_preparse_t *p_obj )
         PL_LOCK;
         if( p_current )
         {
-            if( !strncmp( p_current->psz_uri, "file:", 5 ) )
+            if( p_current->i_type == ITEM_TYPE_FILE )
             {
                 stats_TimerStart( p_playlist, "Preparse run",
                                   STATS_TIMER_PREPARSE );