Commit aba3de33 authored by Clément Stenac's avatar Clément Stenac

Correctly handle "no-skip" items

parent c5100112
...@@ -273,11 +273,18 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist ) ...@@ -273,11 +273,18 @@ playlist_item_t * playlist_NextItem( playlist_t *p_playlist )
return NULL; return NULL;
} }
if( !p_playlist->request.b_request && p_playlist->status.p_item && if( !p_playlist->request.b_request && p_playlist->status.p_item )
p_playlist->status.p_item->i_flags & PLAYLIST_SKIP_FLAG )
{ {
msg_Dbg( p_playlist, "blocking item, stopping") ; playlist_item_t *p_parent = p_playlist->status.p_item;
return NULL; while( p_parent )
{
if( p_parent->i_flags & PLAYLIST_SKIP_FLAG )
{
msg_Dbg( p_playlist, "blocking item, stopping") ;
return NULL;
}
p_parent = p_parent->p_parent;
}
} }
/* Random case. This is an exception: if request, but request is skip +- 1 /* Random case. This is an exception: if request, but request is skip +- 1
......
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