]> git.sesse.net Git - vlc/blobdiff - modules/gui/macosx/embeddedwindow.m
* updated all files to yield the playlist instead of finding it
[vlc] / modules / gui / macosx / embeddedwindow.m
index eb28ac833ff0dc017a74909878ebbd7a07037fd7..53553025eeb6b3da9db41f6b6fdb105cb3fafd62 100644 (file)
 
 - (BOOL)windowShouldClose:(id)sender
 {
-    playlist_t * p_playlist = vlc_object_find( VLCIntf, VLC_OBJECT_PLAYLIST,
-                                                       FIND_ANYWHERE );
-    if( p_playlist == NULL )
-    {
-        return NO;
-    }
+    playlist_t * p_playlist = pl_Yield( VLCIntf );
 
     playlist_Stop( p_playlist );
     vlc_object_release( p_playlist );