Commit ac19065e authored by Ludovic Fauvet's avatar Ludovic Fauvet

media list: shift the current position if an item has been removed

parent 64fa83b0
......@@ -76,6 +76,13 @@ media_list_on_media_added(media_list *p_ml, unsigned int i_index, media_item *p_
static void
media_list_on_media_removed(media_list *p_ml, unsigned int i_index, media_item *p_mi)
if (p_ml->i_pos >= 0 && p_ml->i_pos >= i_index)
// A media has been removed before the current media
// we need to shift its position.
ML_SEND_CALLBACK(pf_on_media_removed, i_index, p_mi);
if (p_ml->b_free_media)
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