[MPlayer-cvslog] r38297 - trunk/gui/ui/menu.c
ib
subversion at mplayerhq.hu
Mon Mar 1 16:13:24 EET 2021
Author: ib
Date: Mon Mar 1 16:13:24 2021
New Revision: 38297
Log:
Use gmp_msg() for a menu memory error.
Modified:
trunk/gui/ui/menu.c
Modified: trunk/gui/ui/menu.c
==============================================================================
--- trunk/gui/ui/menu.c Mon Mar 1 16:12:22 2021 (r38296)
+++ trunk/gui/ui/menu.c Mon Mar 1 16:13:24 2021 (r38297)
@@ -27,6 +27,7 @@
#include "mp_msg.h"
#include "gui/app/app.h"
#include "gui/app/gui.h"
+#include "gui/interface.h"
#include "actions.h"
#include "ui.h"
#include "gui/util/mem.h"
@@ -108,9 +109,8 @@ void uiMenuInit( void )
if ( ( menuDrawBuffer = calloc( 1,guiApp.menu.Bitmap.ImageSize ) ) == NULL )
{
- mp_msg( MSGT_GPLAYER,MSGL_DBG2,"[menu] " MSGTR_GUI_MSG_MemoryErrorWindow );
- gtkMessageBox( MSGBOX_FATAL,"[menu] " MSGTR_GUI_MSG_MemoryErrorWindow );
- return;
+ gmp_msg( MSGT_GPLAYER,MSGL_FATAL,"[menu] " MSGTR_GUI_MSG_MemoryErrorWindow );
+ mplayer( MPLAYER_EXIT_GUI, EXIT_ERROR, 0 );
}
wsWindowCreate( &guiApp.menuWindow,
More information about the MPlayer-cvslog
mailing list