Commit 25327eff authored by Ludovic Fauvet's avatar Ludovic Fauvet

media: fix insertion of media items at any given position of the list

eina_array_push with a NULL data will always return EINA_FALSE therefore
pass a "dummy" pointer that will be overriden in the following loop.
parent 70e3e9e1
......@@ -162,7 +162,7 @@ media_list_insert(media_list *p_ml, int i_index, media_item *p_mi)
{
unsigned int i_count;
/* increase array size */
if (!eina_array_push(p_ml->p_item_array, NULL))
if (!eina_array_push(p_ml->p_item_array, p_mi)) // dummy data
return -1;
/* "memmove" */
......
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