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 ...@@ -107,10 +107,8 @@ 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 ) )
if( playlist_IsEmpty( p_playlist ) && i_query != PLAYLIST_STOP )
return VLC_EGENERIC; 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