[MPlayer-cvslog] r33819 - in trunk: command.c gui/interface.c gui/interface.h gui/skin/font.c gui/ui/actions.c gui/ui/gtk/fileselect.c gui/util/bitmap.h gui/win32/dialogs.c gui/win32/interface.c gui/win32/preferenc...

ib subversion at mplayerhq.hu
Tue Jul 5 14:05:06 CEST 2011


Author: ib
Date: Tue Jul  5 14:05:06 2011
New Revision: 33819

Log:
Cosmetic: Change prefix for symbolic constants from GMP to GUI.

GMP could be confused with the GNU Multiple Precision Arithmetic
Library.

Additionally, rename NEW_FILE SET_FILE and PREPARATION PREPARE
to phrase requests.

Modified:
   trunk/command.c
   trunk/gui/interface.c
   trunk/gui/interface.h
   trunk/gui/skin/font.c
   trunk/gui/ui/actions.c
   trunk/gui/ui/gtk/fileselect.c
   trunk/gui/util/bitmap.h
   trunk/gui/win32/dialogs.c
   trunk/gui/win32/interface.c
   trunk/gui/win32/preferences.c
   trunk/libvo/video_out.c
   trunk/libvo/vo_dxr3.c
   trunk/libvo/vo_xover.c
   trunk/libvo/x11_common.c
   trunk/mplayer.c

Modified: trunk/command.c
==============================================================================
--- trunk/command.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/command.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -1075,7 +1075,7 @@ static int mp_property_fullscreen(m_opti
     case M_PROPERTY_STEP_DOWN:
 #ifdef CONFIG_GUI
         if (use_gui)
-            gui(GMP_RUN_COMMAND, (void *) MP_CMD_VO_FULLSCREEN);
+            gui(GUI_RUN_COMMAND, (void *) MP_CMD_VO_FULLSCREEN);
         else
 #endif
         if (vo_config_count)
@@ -2801,10 +2801,10 @@ int run_command(MPContext *mpctx, mp_cmd
                     int i = 0;
                     if (n > 0)
                         for (i = 0; i < n; i++)
-                            gui(GMP_RUN_COMMAND, (void *)MP_CMD_PLAY_TREE_STEP);
+                            gui(GUI_RUN_COMMAND, (void *)MP_CMD_PLAY_TREE_STEP);
                     else
                         for (i = 0; i < -1 * n; i++)
-                            gui(GMP_RUN_COMMAND, (void *)-MP_CMD_PLAY_TREE_STEP);
+                            gui(GUI_RUN_COMMAND, (void *)-MP_CMD_PLAY_TREE_STEP);
                 } else
 #endif
                 {
@@ -2966,7 +2966,7 @@ int run_command(MPContext *mpctx, mp_cmd
 #ifdef CONFIG_GUI
             // playtree_iter isn't used by the GUI
             if (use_gui)
-                gui(GMP_RUN_COMMAND, (void *)MP_CMD_STOP);
+                gui(GUI_RUN_COMMAND, (void *)MP_CMD_STOP);
             else
 #endif
             // Go back to the starting point.

Modified: trunk/gui/interface.c
==============================================================================
--- trunk/gui/interface.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/gui/interface.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -561,11 +561,11 @@ int gui(int what, void *arg)
         mixer = mpctx_get_mixer(guiInfo.mpcontext);
 
     switch (what) {
-    case GMP_SET_CONTEXT:
+    case GUI_SET_CONTEXT:
         guiInfo.mpcontext = arg;
         break;
 
-    case GMP_SET_STATE:
+    case GUI_SET_STATE:
 
         switch ((int)arg) {
         case GUI_STOP:
@@ -579,7 +579,7 @@ int gui(int what, void *arg)
         uiState();
         break;
 
-    case GMP_NEW_FILE:
+    case GUI_SET_FILE:
 
 // if ( guiInfo.Playing == 1 && guiInfo.FilenameChanged )
         if (guiInfo.FilenameChanged) {
@@ -598,9 +598,9 @@ int gui(int what, void *arg)
 
         break;
 
-    case GMP_RUN_COMMAND:
+    case GUI_RUN_COMMAND:
 
-        mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[interface] GMP_RUN_COMMAND: %d\n", (int)arg);
+        mp_dbg(MSGT_GPLAYER, MSGL_DBG2, "[interface] GUI_RUN_COMMAND: %d\n", (int)arg);
 
         switch ((int)arg) {
         case MP_CMD_VO_FULLSCREEN:
@@ -626,9 +626,9 @@ int gui(int what, void *arg)
 
         break;
 
-    case GMP_PREPARATION:
+    case GUI_PREPARE:
 
-        gui(GMP_NEW_FILE, 0);
+        gui(GUI_SET_FILE, 0);
 
         switch (guiInfo.StreamType) {
         case STREAMTYPE_PLAYLIST:
@@ -839,7 +839,7 @@ int gui(int what, void *arg)
 
         break;
 
-    case GMP_SET_STREAM:
+    case GUI_SET_STREAM:
 
         stream = arg;
         guiInfo.StreamType = stream->type;
@@ -875,11 +875,11 @@ int gui(int what, void *arg)
 
         break;
 
-    case GMP_SET_AFILTER:
+    case GUI_SET_AFILTER:
         guiInfo.afilter = arg;
         break;
 
-    case GMP_SET_VIDEO:
+    case GUI_SET_VIDEO:
 
         // video
 
@@ -904,14 +904,14 @@ int gui(int what, void *arg)
 
         break;
 
-    case GMP_SET_AUDIO:
+    case GUI_SET_AUDIO:
 
         guiInfo.AudioChannels = arg ? ((sh_audio_t *)arg)->channels : 0;
 
         if (arg && !guiInfo.sh_video)
             guiInfo.MovieWindow = False;
 
-        gui(GMP_SET_MIXER, 0);
+        gui(GUI_SET_MIXER, 0);
 
         if (gtkEnableAudioEqualizer) {
             equalizer_t eq;
@@ -930,7 +930,7 @@ int gui(int what, void *arg)
         wsVisibleWindow(&guiApp.subWindow, (guiInfo.MovieWindow ? wsShowWindow : wsHideWindow));
         break;
 
-    case GMP_SET_MIXER:
+    case GUI_SET_MIXER:
         if (mixer) {
             float l, r;
             static float last_balance = -1;
@@ -952,11 +952,11 @@ int gui(int what, void *arg)
         }
         break;
 
-    case GMP_REDRAW:
+    case GUI_REDRAW:
         uiEventHandling(evRedraw, 0);
         break;
 
-    case GMP_SETUP_VIDEO_WINDOW:
+    case GUI_SETUP_VIDEO_WINDOW:
 
         if (!guiApp.subWindow.isFullScreen) {
             wsResizeWindow(&guiApp.subWindow, vo_dwidth, vo_dheight);
@@ -972,13 +972,13 @@ int gui(int what, void *arg)
         WinID = guiApp.subWindow.WindowID;
         break;
 
-    case GMP_X_EVENT:
+    case GUI_X_EVENT:
         guiInfo.event_struct = arg;
         wsEvents(wsDisplay, arg);
         gtkEventHandling();
         break;
 
-    case GMP_END_FILE:
+    case GUI_END_FILE:
 
         if (!uiGotoTheNext && guiInfo.Playing) {
             uiGotoTheNext = 1;
@@ -1013,7 +1013,7 @@ int gui(int what, void *arg)
             } else
                 wsVisibleWindow(&guiApp.subWindow, wsHideWindow);
 
-            gui(GMP_SET_STATE, (void *)GUI_STOP);
+            gui(GUI_SET_STATE, (void *)GUI_STOP);
             uiSubRender = 1;
             wsSetBackgroundRGB(&guiApp.subWindow, guiApp.sub.R, guiApp.sub.G, guiApp.sub.B);
             wsClearWindow(guiApp.subWindow);

Modified: trunk/gui/interface.h
==============================================================================
--- trunk/gui/interface.h	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/gui/interface.h	Tue Jul  5 14:05:06 2011	(r33819)
@@ -35,20 +35,20 @@ extern int use_gui;             // this 
 
 #define GMPlayer "gmplayer"
 
-#define GMP_X_EVENT            0
-#define GMP_SET_STATE          1
-#define GMP_RUN_COMMAND        2
-#define GMP_SET_AUDIO          6
-#define GMP_SETUP_VIDEO_WINDOW 8
-#define GMP_SET_STREAM         9
-#define GMP_REDRAW             10
-#define GMP_SET_MIXER          11
-#define GMP_NEW_FILE           12
-#define GMP_SET_VIDEO          13
-#define GMP_PREPARATION        16
-#define GMP_SET_AFILTER        17
-#define GMP_SET_CONTEXT        18
-#define GMP_END_FILE           19
+#define GUI_X_EVENT            0
+#define GUI_SET_STATE          1
+#define GUI_RUN_COMMAND        2
+#define GUI_SET_AUDIO          6
+#define GUI_SETUP_VIDEO_WINDOW 8
+#define GUI_SET_STREAM         9
+#define GUI_REDRAW             10
+#define GUI_SET_MIXER          11
+#define GUI_SET_FILE           12
+#define GUI_SET_VIDEO          13
+#define GUI_PREPARE            16
+#define GUI_SET_AFILTER        17
+#define GUI_SET_CONTEXT        18
+#define GUI_END_FILE           19
 
 #define GUI_STOP  0
 #define GUI_PLAY  1

Modified: trunk/gui/skin/font.c
==============================================================================
--- trunk/gui/skin/font.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/gui/skin/font.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -312,7 +312,7 @@ guiImage *fntRender(wItem *item, int px,
     ibuf = (uint32_t *)Fonts[id]->Bitmap.Image;
 
     for (i = 0; i < item->Bitmap.ImageSize / 4; i++)
-        obuf[i] = GMP_TRANSPARENT;
+        obuf[i] = GUI_TRANSPARENT;
 
     if (tw <= iw) {
         switch (item->align) {

Modified: trunk/gui/ui/actions.c
==============================================================================
--- trunk/gui/ui/actions.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/gui/ui/actions.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -103,7 +103,7 @@ void uiPlay(void)
         return;
     }
 
-    gui(GMP_SET_STATE, (void *)GUI_PLAY);
+    gui(GUI_SET_STATE, (void *)GUI_PLAY);
     uiSubRender = 0;
     wsSetBackgroundRGB(&guiApp.subWindow, 0, 0, 0);
     wsClearWindow(guiApp.subWindow);

Modified: trunk/gui/ui/gtk/fileselect.c
==============================================================================
--- trunk/gui/ui/gtk/fileselect.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/gui/ui/gtk/fileselect.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -510,7 +510,7 @@ static void fs_Ok_released( GtkButton * 
   }
  if ( i ) fsTopList_items=g_list_prepend( fsTopList_items,(gchar *)get_current_dir_name_utf8() );
  if ( uiMainAutoPlay ) { uiMainAutoPlay=0; uiEventHandling( evPlay,0 ); }
-  else gui( GMP_SET_STATE,(void *) GUI_STOP );
+  else gui( GUI_SET_STATE,(void *) GUI_STOP );
 }
 
 static void fs_Cancel_released( GtkButton * button,gpointer user_data )

Modified: trunk/gui/util/bitmap.h
==============================================================================
--- trunk/gui/util/bitmap.h	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/gui/util/bitmap.h	Tue Jul  5 14:05:06 2011	(r33819)
@@ -19,11 +19,11 @@
 #ifndef MPLAYER_GUI_BITMAP_H
 #define MPLAYER_GUI_BITMAP_H
 
-#define GMP_TRANSPARENT 0xffff00ff   // transparent color (opaque fuchsia/magenta)
+#define GUI_TRANSPARENT 0xffff00ff   // transparent color (opaque fuchsia/magenta)
 #define ALPHA_OPAQUE    0xff000000
 
 // for legacy reasons, we must treat all kind of fuchsia/magenta as transparent
-#define IS_TRANSPARENT(c) ((ALPHA_OPAQUE | (c)) == GMP_TRANSPARENT)
+#define IS_TRANSPARENT(c) ((ALPHA_OPAQUE | (c)) == GUI_TRANSPARENT)
 
 typedef struct {
     unsigned long Width;

Modified: trunk/gui/win32/dialogs.c
==============================================================================
--- trunk/gui/win32/dialogs.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/gui/win32/dialogs.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -708,7 +708,7 @@ static LRESULT CALLBACK SkinBrowserWndPr
                     int len = SendMessage(listbox, LB_GETTEXTLEN, index, 0);
                     if (len)
                     {
-                        if (guiInfo.Playing) gui(GMP_SET_STATE, (void *) GUI_STOP);
+                        if (guiInfo.Playing) gui(GUI_SET_STATE, (void *) GUI_STOP);
                         free(skinName);
                         skinName = malloc(len + 1);
                         SendMessage(listbox, LB_GETTEXT, (WPARAM) index, (LPARAM) skinName);

Modified: trunk/gui/win32/interface.c
==============================================================================
--- trunk/gui/win32/interface.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/gui/win32/interface.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -174,7 +174,7 @@ static void guiSetEvent(int event)
             GetVolumeInformation(dvd_device, dvdname, MAX_PATH, NULL, NULL, NULL, NULL, 0);
             capitalize(dvdname);
             mp_msg(MSGT_GPLAYER, MSGL_V, "Opening DVD %s -> %s\n", dvd_device, dvdname);
-            gui(GMP_PREPARATION, (void *) STREAMTYPE_DVD);
+            gui(GUI_PREPARE, (void *) STREAMTYPE_DVD);
             mygui->playlist->clear_playlist(mygui->playlist);
             mygui->playlist->add_track(mygui->playlist, filename, NULL, dvdname, 0);
             mygui->startplay(mygui);
@@ -218,7 +218,7 @@ static void guiSetEvent(int event)
         }
         case evStop:
             if(guiInfo.Playing)
-                gui(GMP_SET_STATE, (void *) GUI_STOP);
+                gui(GUI_SET_STATE, (void *) GUI_STOP);
             break;
         case evSetMoviePosition:
         {
@@ -288,7 +288,7 @@ static void guiSetEvent(int event)
                     guiInfo.Chapter = guiInfo.DVD.current_chapter;
                     guiInfo.Angle = guiInfo.DVD.current_angle;
                     guiInfo.DiskChanged = 1;
-                    gui(GMP_SET_STATE, (void *) GUI_PLAY);
+                    gui(GUI_SET_STATE, (void *) GUI_PLAY);
                     break;
                 }
 #endif
@@ -297,8 +297,8 @@ static void guiSetEvent(int event)
                     guiInfo.FilenameChanged = guiInfo.NewPlay = 1;
                     update_playlistwindow();
                     uiGotoTheNext = guiInfo.Playing? 0 : 1;
-                    gui(GMP_SET_STATE, (void *) GUI_STOP);
-                    gui(GMP_SET_STATE, (void *) GUI_PLAY);
+                    gui(GUI_SET_STATE, (void *) GUI_STOP);
+                    gui(GUI_SET_STATE, (void *) GUI_PLAY);
                     break;
                }
            }
@@ -324,7 +324,7 @@ void uiPlay( void )
        return;
    }
    guiInfo.NewPlay = 1;
-   gui(GMP_SET_STATE, (void *) GUI_PLAY);
+   gui(GUI_SET_STATE, (void *) GUI_PLAY);
 }
 
 void uiPause( void )
@@ -499,9 +499,9 @@ int gui(int what, void *arg)
 
     switch (what)
     {
-        case GMP_PREPARATION:
+        case GUI_PREPARE:
         {
-            gui(GMP_NEW_FILE, 0);
+            gui(GUI_SET_FILE, 0);
             guiInfo.DiskChanged = 0;
             guiInfo.FilenameChanged = 0;
             guiInfo.NewPlay = 0;
@@ -528,7 +528,7 @@ int gui(int what, void *arg)
                 strcpy(guiInfo.Filename, filename);
             break;
         }
-        case GMP_SET_AUDIO:
+        case GUI_SET_AUDIO:
         {
             guiInfo.MovieWindow = (arg && !guiInfo.sh_video);
             // NOTE: This type doesn't mean (and never meant) that we have
@@ -538,10 +538,10 @@ int gui(int what, void *arg)
                 ShowWindow(mygui->subwindow, SW_HIDE);
             break;
         }
-        case GMP_SET_CONTEXT:
+        case GUI_SET_CONTEXT:
             guiInfo.mpcontext = arg;
             break;
-        case GMP_SET_VIDEO:
+        case GUI_SET_VIDEO:
         {
             guiInfo.sh_video = arg;
             if (arg)
@@ -559,7 +559,7 @@ int gui(int what, void *arg)
             }
             break;
         }
-        case GMP_SETUP_VIDEO_WINDOW:
+        case GUI_SETUP_VIDEO_WINDOW:
         {
             guiInfo.MovieWidth = vo_dwidth;
             guiInfo.MovieHeight = vo_dheight;
@@ -569,7 +569,7 @@ int gui(int what, void *arg)
                update_subwindow();
             break;
         }
-        case GMP_SET_STREAM:
+        case GUI_SET_STREAM:
         {
             guiInfo.StreamType = stream->type;
             switch(stream->type)
@@ -593,13 +593,13 @@ int gui(int what, void *arg)
             }
             break;
         }
-        case GMP_REDRAW:
+        case GUI_REDRAW:
             mygui->updatedisplay(mygui, mygui->mainwindow);
             break;
-        case GMP_SET_AFILTER:
+        case GUI_SET_AFILTER:
             guiInfo.afilter = arg;
             break;
-        case GMP_SET_STATE:
+        case GUI_SET_STATE:
         {
             guiInfo.Playing = (int) arg;
             switch (guiInfo.Playing)
@@ -623,7 +623,7 @@ int gui(int what, void *arg)
             }
             break;
         }
-        case GMP_RUN_COMMAND:
+        case GUI_RUN_COMMAND:
         {
             mp_msg(MSGT_GPLAYER,MSGL_V, "cmd: %d\n", (int) arg);
             /* MPlayer asks us to quit */
@@ -654,7 +654,7 @@ int gui(int what, void *arg)
             }
             break;
         }
-        case GMP_NEW_FILE:
+        case GUI_SET_FILE:
         {
             audio_id = -1;
             video_id = -1;
@@ -680,7 +680,7 @@ int gui(int what, void *arg)
             if(gtkAutoSyncOn) autosync = gtkAutoSync;
             break;
         }
-        case GMP_SET_MIXER:
+        case GUI_SET_MIXER:
         {
             if(audio_out)
             {
@@ -696,7 +696,7 @@ int gui(int what, void *arg)
             }
             break;
         }
-        case GMP_END_FILE:
+        case GUI_END_FILE:
         {
           if(!uiGotoTheNext && guiInfo.Playing)
           {
@@ -740,7 +740,7 @@ int gui(int what, void *arg)
               style = WS_OVERLAPPEDWINDOW | WS_SIZEBOX;
               SetWindowLong(mygui->subwindow, GWL_STYLE, style);
           }
-          gui(GMP_SET_STATE, (void *) GUI_STOP);
+          gui(GUI_SET_STATE, (void *) GUI_STOP);
           break;
         }
         default:

Modified: trunk/gui/win32/preferences.c
==============================================================================
--- trunk/gui/win32/preferences.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/gui/win32/preferences.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -575,7 +575,7 @@ static LRESULT CALLBACK PrefsWndProc(HWN
                 case ID_APPLY:
                 {
                     int strl;
-                    if(guiInfo.Playing) gui(GMP_SET_STATE, (void *)GUI_STOP);
+                    if(guiInfo.Playing) gui(GUI_SET_STATE, (void *)GUI_STOP);
 
                     /* Set the video driver */
                     free(video_driver_list[0]);

Modified: trunk/libvo/video_out.c
==============================================================================
--- trunk/libvo/video_out.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/libvo/video_out.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -372,7 +372,7 @@ int config_video_out(const vo_functions_
 #ifdef CONFIG_GUI
     if (use_gui) {
       // GUI creates and manages window for us
-      gui(GMP_SETUP_VIDEO_WINDOW, 0);
+      gui(GUI_SETUP_VIDEO_WINDOW, 0);
     }
 #endif
   }

Modified: trunk/libvo/vo_dxr3.c
==============================================================================
--- trunk/libvo/vo_dxr3.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/libvo/vo_dxr3.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -491,7 +491,7 @@ static int config(uint32_t width, uint32
 		vo_dheight = d_height;
 #ifdef CONFIG_GUI
 		if (use_gui)
-			gui(GMP_SETUP_VIDEO_WINDOW, 0);
+			gui(GUI_SETUP_VIDEO_WINDOW, 0);
 #endif
 		XGetWindowAttributes(mDisplay, DefaultRootWindow(mDisplay), &xwin_attribs);
 		depth = xwin_attribs.depth;

Modified: trunk/libvo/vo_xover.c
==============================================================================
--- trunk/libvo/vo_xover.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/libvo/vo_xover.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -269,7 +269,7 @@ static int config(uint32_t width, uint32
   vo_dwidth=d_width; vo_dheight=d_height;
 
 #ifdef CONFIG_GUI
-  if(use_gui) gui(GMP_SETUP_VIDEO_WINDOW, 0); // the GUI will set up / resize the window
+  if(use_gui) gui(GUI_SETUP_VIDEO_WINDOW, 0); // the GUI will set up / resize the window
   else
     {
 #endif

Modified: trunk/libvo/x11_common.c
==============================================================================
--- trunk/libvo/x11_common.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/libvo/x11_common.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -821,7 +821,7 @@ int vo_x11_check_events(Display * mydisp
 #ifdef CONFIG_GUI
         if (use_gui)
         {
-            gui(GMP_X_EVENT, &Event);
+            gui(GUI_X_EVENT, &Event);
             if (vo_window != Event.xany.window)
                 continue;
         }

Modified: trunk/mplayer.c
==============================================================================
--- trunk/mplayer.c	Tue Jul  5 13:34:26 2011	(r33818)
+++ trunk/mplayer.c	Tue Jul  5 14:05:06 2011	(r33819)
@@ -584,7 +584,7 @@ void uninit_player(unsigned int mask)
             uninit_audio(mpctx->sh_audio);
 #ifdef CONFIG_GUI
         if (use_gui)
-            gui(GMP_SET_AFILTER, NULL);
+            gui(GUI_SET_AFILTER, NULL);
 #endif
         mpctx->sh_audio      = NULL;
         mpctx->mixer.afilter = NULL;
@@ -1334,7 +1334,7 @@ static int build_afilter_chain(sh_audio_
     if (!sh_audio) {
 #ifdef CONFIG_GUI
         if (use_gui)
-            gui(GMP_SET_AFILTER, NULL);
+            gui(GUI_SET_AFILTER, NULL);
 #endif
         mpctx->mixer.afilter = NULL;
         return 0;
@@ -1359,7 +1359,7 @@ static int build_afilter_chain(sh_audio_
     mpctx->mixer.afilter = sh_audio->afilter;
 #ifdef CONFIG_GUI
     if (use_gui)
-        gui(GMP_SET_AFILTER, sh_audio->afilter);
+        gui(GUI_SET_AFILTER, sh_audio->afilter);
 #endif
     return result;
 }
@@ -2537,7 +2537,7 @@ static void pause_loop(void)
     }
 #ifdef CONFIG_GUI
     if (use_gui)
-        gui(GMP_SET_STATE, (void *)GUI_PAUSE);
+        gui(GUI_SET_STATE, (void *)GUI_PAUSE);
 #endif
     if (mpctx->video_out && mpctx->sh_video && vo_config_count)
         mpctx->video_out->control(VOCTRL_PAUSE, NULL);
@@ -2557,7 +2557,7 @@ static void pause_loop(void)
 #ifdef CONFIG_GUI
         if (use_gui) {
             guiEventHandling();
-            gui(GMP_REDRAW, 0);
+            gui(GUI_REDRAW, 0);
             if (guiInfo.Playing != GUI_PAUSE || (rel_seek_secs || abs_seek_pos))
                 break;
         }
@@ -2604,7 +2604,7 @@ static void pause_loop(void)
         if (guiInfo.Playing == GUI_STOP)
             mpctx->eof = 1;
         else
-            gui(GMP_SET_STATE, (void *)GUI_PLAY);
+            gui(GUI_SET_STATE, (void *)GUI_PLAY);
     }
 #endif
 }
@@ -3051,8 +3051,8 @@ int main(int argc, char *argv[])
 #ifdef CONFIG_GUI
     if (use_gui) {
         guiInit();
-        gui(GMP_SET_CONTEXT, mpctx);
-        gui(GMP_SET_STATE, (void *)(gui_no_filename ? GUI_STOP : GUI_PLAY));
+        gui(GUI_SET_CONTEXT, mpctx);
+        gui(GUI_SET_STATE, (void *)(gui_no_filename ? GUI_STOP : GUI_PLAY));
     }
 #endif
 
@@ -3090,18 +3090,18 @@ play_next_file:
 #ifdef CONFIG_GUI
     if (use_gui) {
         mpctx->file_format = DEMUXER_TYPE_UNKNOWN;
-        gui(GMP_NEW_FILE, 0);
+        gui(GUI_SET_FILE, 0);
         while (guiInfo.Playing != GUI_PLAY) {
             mp_cmd_t *cmd;
             usec_sleep(20000);
             guiEventHandling();
-            gui(GMP_REDRAW, 0);
+            gui(GUI_REDRAW, 0);
             if ((cmd = mp_input_get_cmd(0, 0, 0)) != NULL) {
-                gui(GMP_RUN_COMMAND, (void *)cmd->id);
+                gui(GUI_RUN_COMMAND, (void *)cmd->id);
                 mp_cmd_free(cmd);
             }
         }
-        gui(GMP_PREPARATION, 0);
+        gui(GUI_PREPARE, 0);
         if (guiInfo.StreamType == STREAMTYPE_STREAM) {
             play_tree_t *entry = play_tree_new();
             play_tree_add_file(entry, guiInfo.Filename);
@@ -3244,7 +3244,7 @@ play_next_file:
 
 #ifdef CONFIG_GUI
     if (use_gui)
-        gui(GMP_SET_STREAM, mpctx->stream);
+        gui(GUI_SET_STREAM, mpctx->stream);
 #endif
 
     if (mpctx->file_format == DEMUXER_TYPE_PLAYLIST) {
@@ -3677,9 +3677,9 @@ goto_enable_cache:
 
 #ifdef CONFIG_GUI
         if (use_gui) {
-            if (!gui(GMP_SET_VIDEO, mpctx->sh_video))
+            if (!gui(GUI_SET_VIDEO, mpctx->sh_video))
                 goto goto_next_file;
-            gui(GMP_SET_AUDIO, mpctx->sh_audio);
+            gui(GUI_SET_AUDIO, mpctx->sh_audio);
         }
 #endif
 
@@ -3995,8 +3995,8 @@ goto_enable_cache:
                 else if (mpctx->sh_audio)
                     guiInfo.TimeSec = playing_audio_pts(mpctx->sh_audio, mpctx->d_audio, mpctx->audio_out);
                 guiInfo.LengthInSec = demuxer_get_time_length(mpctx->demuxer);
-                gui(GMP_SET_MIXER, 0);
-                gui(GMP_REDRAW, 0);
+                gui(GUI_SET_MIXER, 0);
+                gui(GUI_REDRAW, 0);
                 if (guiInfo.Playing == GUI_STOP)
                     break;                  // STOP
                 if (guiInfo.Playing == GUI_PAUSE)
@@ -4103,7 +4103,7 @@ goto_next_file:  // don't jump here afte
 #ifdef CONFIG_DVDREAD
         if (!guiInfo.DiskChanged)
 #endif
-        gui(GMP_END_FILE, 0);
+        gui(GUI_END_FILE, 0);
     }
 #endif
 


More information about the MPlayer-cvslog mailing list