Commit c7688765 authored by Laurent Aimar's avatar Laurent Aimar

Fixed a possible fetcher deadlock.

It could happen if the input_thread_t die before/without sending any
meta event.
parent dc9d7d9b
......@@ -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;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment