changeset 31311:9ce59b78dbfd

Remove mp_msg related GUI hacks.
author reimar
date Sun, 13 Jun 2010 11:17:26 +0000
parents 4b888c2d2a1d
children 0b7792622c88
files Changelog Makefile mp_msg-mencoder.c mp_msg.c stream/cache2.c
diffstat 5 files changed, 5 insertions(+), 41 deletions(-) [+]
line wrap: on
line diff
--- a/Changelog	Sun Jun 13 10:45:20 2010 +0000
+++ b/Changelog	Sun Jun 13 11:17:26 2010 +0000
@@ -1,6 +1,9 @@
 MPlayer (1.0)
 
   rc4: "Yes We Can"
+    Gui: Changes towards removing the Gui
+    * The Gui will no longer display any error or warning messages
+
     Decoders:
     * YUY2 Lossless Codec (YLC0) via binary DLL
     * Truemotion RT codec (TR20) via binary DLL
--- a/Makefile	Sun Jun 13 10:45:20 2010 +0000
+++ b/Makefile	Sun Jun 13 11:17:26 2010 +0000
@@ -336,6 +336,7 @@
               m_config.c \
               m_option.c \
               m_struct.c \
+              mp_msg.c \
               mpcommon.c \
               parser-cfg.c \
               path.c \
@@ -668,7 +669,6 @@
                m_property.c \
                mixer.c \
                mp_fifo.c \
-               mp_msg.c \
                mplayer.c \
                parser-mpcmd.c \
                input/input.c \
@@ -700,7 +700,6 @@
 SRCS_MENCODER-$(XVID4)            += libmpcodecs/ve_xvid4.c
 
 SRCS_MENCODER = mencoder.c \
-                mp_msg-mencoder.c \
                 parser-mecmd.c \
                 xvid_vbr.c \
                 libmpcodecs/ae.c \
@@ -1000,7 +999,7 @@
 
 ###### tests / tools #######
 
-TEST_OBJS = mp_msg-mencoder.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm
+TEST_OBJS = mp_msg.o mp_fifo.o osdep/$(GETCH) osdep/$(TIMER) -ltermcap -lm
 
 codec-cfg-test$(EXESUF): codec-cfg.c codecs.conf.h help_mp.h $(TEST_OBJS)
 	$(CC) -I. -DTESTING -o $@ $^
--- a/mp_msg-mencoder.c	Sun Jun 13 10:45:20 2010 +0000
+++ /dev/null	Thu Jan 01 00:00:00 1970 +0000
@@ -1,22 +0,0 @@
-/*
- * This file is part of MPlayer.
- *
- * MPlayer is free software; you can redistribute it and/or modify
- * it under the terms of the GNU General Public License as published by
- * the Free Software Foundation; either version 2 of the License, or
- * (at your option) any later version.
- *
- * MPlayer is distributed in the hope that it will be useful,
- * but WITHOUT ANY WARRANTY; without even the implied warranty of
- * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
- * GNU General Public License for more details.
- *
- * You should have received a copy of the GNU General Public License along
- * with MPlayer; if not, write to the Free Software Foundation, Inc.,
- * 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA.
- */
-
-/* Build an exact copy of the logging facilities without GUI dependencies. */
-
-#define FOR_MENCODER 1
-#include "mp_msg.c"
--- a/mp_msg.c	Sun Jun 13 10:45:20 2010 +0000
+++ b/mp_msg.c	Sun Jun 13 11:17:26 2010 +0000
@@ -29,13 +29,6 @@
 #include <errno.h>
 #endif
 
-#if defined(FOR_MENCODER)
-#undef CONFIG_GUI
-int use_gui;
-#else
-#include "gui/interface.h"
-#endif
-
 #include "mp_msg.h"
 
 /* maximum message length of mp_msg */
@@ -196,11 +189,6 @@
     tmp[MSGSIZE_MAX-2] = '\n';
     tmp[MSGSIZE_MAX-1] = 0;
 
-#ifdef CONFIG_GUI
-    if(use_gui)
-        guiMessageBox(lev, tmp);
-#endif
-
 #if defined(CONFIG_ICONV) && defined(MSG_CHARSET)
     if (mp_msg_charset && strcasecmp(mp_msg_charset, "noconv")) {
       char tmp2[MSGSIZE_MAX];
--- a/stream/cache2.c	Sun Jun 13 10:45:20 2010 +0000
+++ b/stream/cache2.c	Sun Jun 13 11:17:26 2010 +0000
@@ -64,7 +64,6 @@
 
 #include "stream.h"
 #include "cache2.h"
-extern int use_gui;
 
 typedef struct {
   // constats:
@@ -473,9 +472,6 @@
   }
 
 #if FORKED_CACHE
-#ifdef CONFIG_GUI
-  use_gui = 0; // mp_msg may not use gui stuff in forked code
-#endif
   signal(SIGTERM,exit_sighandler); // kill
   cache_mainloop(s);
   // make sure forked code never leaves this function