Commit 2755833f authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Fix yet another playlist corner case

parent ee4da951
......@@ -700,8 +700,8 @@ static void RunThread ( playlist_t *p_playlist )
}
else if( p_playlist->status.i_status == PLAYLIST_STOPPED )
{
if( p_playlist->status.p_item && p_playlist->status.p_item->i_flags
& PLAYLIST_REMOVE_FLAG )
if( p_item && p_playlist->status.p_item &&
p_playlist->status.p_item->i_flags & PLAYLIST_REMOVE_FLAG )
{
playlist_ItemDelete( p_item );
p_playlist->status.p_item = NULL;
......
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