comparison 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
comparison
equal deleted inserted replaced
33023:ba432e34dc7e 33024:21e0de9c355f
30 #include "gui/skin/font.h" 30 #include "gui/skin/font.h"
31 #include "gui/skin/skin.h" 31 #include "gui/skin/skin.h"
32 #include "gui/wm/ws.h" 32 #include "gui/wm/ws.h"
33 33
34 #include "help_mp.h" 34 #include "help_mp.h"
35 #include "mp_core.h"
35 #include "libvo/x11_common.h" 36 #include "libvo/x11_common.h"
36 #include "libvo/fastmemcpy.h" 37 #include "libvo/fastmemcpy.h"
37 38
38 #include "stream/stream.h" 39 #include "stream/stream.h"
39 #include "mixer.h" 40 #include "mixer.h"
241 242
242 gfree( (void**)&mplPBDrawBuffer ); 243 gfree( (void**)&mplPBDrawBuffer );
243 244
244 if ( ( mplPBDrawBuffer = malloc( appMPlayer.bar.Bitmap.ImageSize ) ) == NULL ) 245 if ( ( mplPBDrawBuffer = malloc( appMPlayer.bar.Bitmap.ImageSize ) ) == NULL )
245 { 246 {
246 mp_msg( MSGT_GPLAYER,MSGL_FATAL,MSGTR_NEMDB ); 247 gmp_msg( MSGT_GPLAYER,MSGL_FATAL,MSGTR_NEMDB );
247 exit( 0 ); 248 exit_player( EXIT_ERROR );
248 } 249 }
249 250
250 appMPlayer.barWindow.Parent=appMPlayer.subWindow.WindowID; 251 appMPlayer.barWindow.Parent=appMPlayer.subWindow.WindowID;
251 wsCreateWindow( &appMPlayer.barWindow, 252 wsCreateWindow( &appMPlayer.barWindow,
252 appMPlayer.bar.x,appMPlayer.bar.y,appMPlayer.bar.width,appMPlayer.bar.height, 253 appMPlayer.bar.x,appMPlayer.bar.y,appMPlayer.bar.width,appMPlayer.bar.height,