diff gui/mplayer/pb.c @ 33024:21e0de9c355f

Show GUI message when GUI must exit. Besides, change exit() to exit_player().
author ib
date Fri, 25 Mar 2011 11:28:25 +0000
parents 03b1051bed5c
children eda3df3e4a9d
line wrap: on
line diff
--- a/gui/mplayer/pb.c	Fri Mar 25 10:33:48 2011 +0000
+++ b/gui/mplayer/pb.c	Fri Mar 25 11:28:25 2011 +0000
@@ -32,6 +32,7 @@
 #include "gui/wm/ws.h"
 
 #include "help_mp.h"
+#include "mp_core.h"
 #include "libvo/x11_common.h"
 #include "libvo/fastmemcpy.h"
 
@@ -243,8 +244,8 @@
 
  if ( ( mplPBDrawBuffer = malloc( appMPlayer.bar.Bitmap.ImageSize ) ) == NULL )
   {
-   mp_msg( MSGT_GPLAYER,MSGL_FATAL,MSGTR_NEMDB );
-   exit( 0 );
+   gmp_msg( MSGT_GPLAYER,MSGL_FATAL,MSGTR_NEMDB );
+   exit_player( EXIT_ERROR );
   }
 
  appMPlayer.barWindow.Parent=appMPlayer.subWindow.WindowID;