]> git.sesse.net Git - vlc/commitdiff
macosx: Make sure we use pl_Yield alond with pl_Release.
authorPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 5 Jul 2008 10:43:11 +0000 (12:43 +0200)
committerPierre d'Herbemont <pdherbemont@videolan.org>
Sat, 5 Jul 2008 10:43:11 +0000 (12:43 +0200)
modules/gui/macosx/intf.m

index 514e4f2cc993eccebfe3d7bbab71ffcf49ab0a6b..62a63fe212cb60f7d61cc7c3707d1467efcdfc75 100644 (file)
@@ -1305,7 +1305,7 @@ static VLCMain *_o_sharedMainInstance = nil;
             if( p_playlist->status.p_item == NULL )
             {
                 vlc_object_release( p_input );
-                vlc_object_release( p_playlist );
+                pl_Release( p_intf );
                 goto end;
             }
             if( input_item_GetNowPlaying ( p_playlist->status.p_item->p_input ) )
@@ -1378,7 +1378,7 @@ static VLCMain *_o_sharedMainInstance = nil;
         [o_embedded_window playStatusUpdated: p_intf->p_sys->i_play_status];
         [self setSubmenusEnabled: FALSE];
     }
-    vlc_object_release( p_playlist );
+    pl_Release( p_intf );
 
 end:
     [self updateMessageArray];