]> git.sesse.net Git - vlc/commitdiff
Fixed a possible fetcher deadlock.
authorLaurent Aimar <fenrir@videolan.org>
Mon, 9 Mar 2009 22:41:41 +0000 (23:41 +0100)
committerLaurent Aimar <fenrir@videolan.org>
Mon, 9 Mar 2009 22:41:41 +0000 (23:41 +0100)
It could happen if the input_thread_t die before/without sending any
meta event.

src/playlist/fetcher.c

index a6ab382c99bba4df8f68d87229639c74c403e957..a35b732caa41a7979c5428858728ffb71db0623d 100644 (file)
@@ -318,7 +318,8 @@ static int InputEvent( vlc_object_t *p_this, char const *psz_cmd,
     VLC_UNUSED(p_this); VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval);
     playlist_fetcher_t *p_fetcher = p_data;
 
-    if( newval.i_int == INPUT_EVENT_ITEM_META )
+    if( newval.i_int == INPUT_EVENT_ITEM_META ||
+        newval.i_int == INPUT_EVENT_DEAD )
         vlc_cond_signal( &p_fetcher->wait );
 
     return VLC_SUCCESS;