]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/vout.m
Replaced a certain amount of vlc_object_find by pl_Yield
[vlc] / modules / gui / macosx / vout.m
index e6465b5c7aa356b00070e964b20250b26b719d24..4fde1d1078f382f32f094909ba53117092f1a1b7 100644 (file)
@@ -1208,8 +1208,7 @@ int DeviceCallback( vlc_object_t *p_this, const char *psz_variable,
 
 - (BOOL)windowShouldClose:(id)sender
 {
-    playlist_t * p_playlist = vlc_object_find( p_vout, VLC_OBJECT_PLAYLIST,
-                                                       FIND_ANYWHERE );
+    playlist_t * p_playlist = pl_Yield( p_vout );
     if( p_playlist == NULL )
     {
         return NO;