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