Commit 06ce5bd0 authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: ignore input state event

Any started input will eventually emit the dead event if/when it ends.
There are no needs to track the state event separately.
parent b7ebf939
......@@ -97,16 +97,13 @@ static int InputEvent( vlc_object_t *p_this, char const *psz_cmd,
VLC_UNUSED(p_this); VLC_UNUSED(psz_cmd); VLC_UNUSED(oldval);
playlist_t *p_playlist = p_data;
if( newval.i_int != INPUT_EVENT_STATE &&
newval.i_int != INPUT_EVENT_DEAD )
return VLC_SUCCESS;
PL_LOCK;
/* XXX: signaling while not changing any parameter... suspicious... */
vlc_cond_signal( &pl_priv(p_playlist)->signal );
PL_UNLOCK;
if( newval.i_int == INPUT_EVENT_DEAD )
{
PL_LOCK;
/* XXX: signaling while not changing any parameter... suspicious... */
vlc_cond_signal( &pl_priv(p_playlist)->signal );
PL_UNLOCK;
}
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