Commit 0f9541fa authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

Do not check that playlist has an input twice

(This does NOT fix the RC pause deadlock)
parent e7dfcd8d
......@@ -151,22 +151,21 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
break;
case PLAYLIST_PAUSE:
if( pl_priv(p_playlist)->p_input &&
var_GetInteger( pl_priv(p_playlist)->p_input, "state" ) == PAUSE_S )
if( !pl_priv(p_playlist)->p_input )
{ /* FIXME: is this really useful without input? */
pl_priv(p_playlist)->status.i_status = PLAYLIST_PAUSED;
break;
}
if( var_GetInteger( pl_priv(p_playlist)->p_input, "state" ) == PAUSE_S )
{
pl_priv(p_playlist)->status.i_status = PLAYLIST_RUNNING;
if( pl_priv(p_playlist)->p_input )
{
var_SetInteger( pl_priv(p_playlist)->p_input, "state", PLAYING_S );
}
var_SetInteger( pl_priv(p_playlist)->p_input, "state", PLAYING_S );
}
else
{
pl_priv(p_playlist)->status.i_status = PLAYLIST_PAUSED;
if( pl_priv(p_playlist)->p_input )
{
var_SetInteger( pl_priv(p_playlist)->p_input, "state", PAUSE_S );
}
var_SetInteger( pl_priv(p_playlist)->p_input, "state", PAUSE_S );
}
break;
......
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