]> git.sesse.net Git - vlc/commitdiff
Mark non-file input items as preparsed even if they're not
authorRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Jul 2011 20:12:20 +0000 (23:12 +0300)
committerRémi Denis-Courmont <remi@remlab.net>
Sun, 10 Jul 2011 20:13:26 +0000 (23:13 +0300)
Without this, libvlc_media_parse() will deadlock on non-file items.

src/playlist/preparser.c

index dfd955a6392447a939df5814e757a39b968b7210..232d798bac8c1165ebbf7e630ebed60d0142cad4 100644 (file)
@@ -126,7 +126,10 @@ static void Preparse( playlist_t *p_playlist, input_item_t *p_item )
     vlc_mutex_unlock( &p_item->lock );
 
     if( i_type != ITEM_TYPE_FILE )
+    {
+        input_item_SetPreparsed( p_item, true );
         return;
+    }
 
     stats_TimerStart( p_playlist, "Preparse run", STATS_TIMER_PREPARSE );