Commit 19c49bbc authored by Rémi Denis-Courmont's avatar Rémi Denis-Courmont

playlist: allow playlist_Stop() on a killed playlist

parent c3852ac6
......@@ -107,10 +107,8 @@ static int PlaylistVAControl( playlist_t * p_playlist, int i_query, va_list args
PL_ASSERT_LOCKED;
if( pl_priv(p_playlist)->killed )
return VLC_EGENERIC;
if( playlist_IsEmpty( p_playlist ) && i_query != PLAYLIST_STOP )
if( i_query != PLAYLIST_STOP )
if( pl_priv(p_playlist)->killed || playlist_IsEmpty( p_playlist ) )
return VLC_EGENERIC;
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