]> git.sesse.net Git - vlc/commitdiff
macosx: Yet an other locking typo.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 8 Jul 2008 20:59:56 +0000 (22:59 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Tue, 8 Jul 2008 20:59:56 +0000 (22:59 +0200)
modules/gui/macosx/playlist.m

index 9be1f6b2a2be4902d9664f7c5b86a04a5c03dac8..22d81f856617b8e8296406045dc0a90ec3f95a75 100644 (file)
     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;
 
         /* 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 )
         {
         }
         vlc_gc_decref( p_input );
     }
+    PL_UNLOCK;
+
     [self playlistUpdated];
     vlc_object_release( p_playlist );
 }