Commit 2b69fa1f authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: remove unnecessary shortcuts

Controls can be processed if the playlist is empty. They just do
nothing. Conversely, stop need not be processed if the playlist was
already killed.
parent df6c654e
......@@ -53,9 +53,8 @@ static void playlist_vaControl( playlist_t *p_playlist, int i_query, va_list arg
{
PL_ASSERT_LOCKED;
if( i_query != PLAYLIST_STOP )
if( pl_priv(p_playlist)->killed || playlist_IsEmpty( p_playlist ) )
return;
if( pl_priv(p_playlist)->killed )
return;
switch( i_query )
{
......
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