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 809f458..a932789 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 );