Commit 45fee8ed authored by Pierre d'Herbemont's avatar Pierre d'Herbemont

macosx: Yet an other locking typo.

parent adec5472
......@@ -970,6 +970,7 @@
int i_item;
playlist_t * p_playlist = pl_Yield( VLCIntf );
PL_LOCK;
for( i_item = 0; i_item < (int)[o_array count]; i_item++ )
{
input_item_t *p_input;
......@@ -985,9 +986,10 @@
/* Add the item */
/* FIXME: playlist_AddInput() can fail */
playlist_AddInput( p_playlist, p_input, PLAYLIST_INSERT,
i_position == -1 ? PLAYLIST_END : i_position + i_item, true,
false );
true );
if( i_item == 0 && !b_enqueue )
{
......@@ -997,6 +999,8 @@
}
vlc_gc_decref( p_input );
}
PL_UNLOCK;
[self playlistUpdated];
vlc_object_release( p_playlist );
}
......
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