]> git.sesse.net Git - vlc/commitdiff
* Don't do intf-show after the last p_vout closes on OSX.
authorDerk-Jan Hartman <hartman@videolan.org>
Wed, 1 Nov 2006 19:52:41 +0000 (19:52 +0000)
committerDerk-Jan Hartman <hartman@videolan.org>
Wed, 1 Nov 2006 19:52:41 +0000 (19:52 +0000)
src/video_output/video_output.c

index fc7530bd7e0918a178abd881078fd4d2fd966b55..2e98ed8e64f8adae7d0efeef9607e248caab8020 100644 (file)
@@ -490,7 +490,11 @@ void vout_Destroy( vout_thread_t *p_vout )
 
     /* Free structure */
     vlc_object_destroy( p_vout );
-
+#ifndef __APPLE__
+    /* This is a dirty hack for mostly Linux, where there is no way to get the GUI
+       back if you closed it while playing video. This is solved in Mac OS X,
+       where we have this novelty called menubar, that will always allow you access
+       to the applications main functionality. They should try that on linux sometime */
     p_another_vout = vlc_object_find( p_playlist,
                                       VLC_OBJECT_VOUT, FIND_ANYWHERE );
     if( p_another_vout == NULL )
@@ -503,6 +507,7 @@ void vout_Destroy( vout_thread_t *p_vout )
     {
         vlc_object_release( p_another_vout );
     }
+#endif
     vlc_object_release( p_playlist );
 }