Commit aeb0bfbc authored by Derk-Jan Hartman's avatar Derk-Jan Hartman

* Use insert instead of append. Does not yet work for inserting into nodes. refs #150

parent 2e4c68ff
...@@ -1125,7 +1125,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/ ...@@ -1125,7 +1125,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
} }
/* Add the item */ /* Add the item */
playlist_AddItem( p_playlist, p_item, PLAYLIST_APPEND, i_position == -1 ? PLAYLIST_END : i_position + i_item ); playlist_AddItem( p_playlist, p_item, PLAYLIST_INSERT, i_position == -1 ? PLAYLIST_END : i_position + i_item );
if( i_item == 0 && !b_enqueue ) if( i_item == 0 && !b_enqueue )
{ {
...@@ -1159,7 +1159,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/ ...@@ -1159,7 +1159,7 @@ belongs to an Apple hidden private API, and then can "disapear" at any time*/
} }
/* Add the item */ /* Add the item */
playlist_NodeAddItem( p_playlist, p_item, i_view, p_node, PLAYLIST_APPEND, i_position + i_item ); playlist_NodeAddItem( p_playlist, p_item, i_view, p_node, PLAYLIST_INSERT, i_position + i_item );
if( i_item == 0 && !b_enqueue ) if( i_item == 0 && !b_enqueue )
{ {
......
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