Commit 64fa83b0 authored by Ludovic Fauvet's avatar Ludovic Fauvet

media list: fix explicit playback of last track

parent 4e64a3d1
......@@ -63,8 +63,13 @@ media_list_on_new_pos(media_list *p_ml)
static void
media_list_on_media_added(media_list *p_ml, unsigned int i_index, media_item *p_mi)
{
if (p_ml->i_pos >= 0 && p_ml->i_pos <= i_index)
if (p_ml->i_pos >= 0 && p_ml->i_pos >= i_index)
{
// A media has been inserted before the current media
// we need to shift its position.
p_ml->i_pos++;
}
ML_SEND_CALLBACK(pf_on_media_added, i_index, p_mi);
}
......
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