diff mplayer.c @ 33614:79743a5cf4f0

Rename the symbolic playback state constants. They should not be confused with the guiGetEvent types. Upper case charcaters shall reflect that they are (integer) constants. Additionally, adjust their casts.
author ib
date Wed, 22 Jun 2011 12:12:50 +0000
parents 6aa251adfba0
children 1f9a31d4f114
line wrap: on
line diff
--- a/mplayer.c	Wed Jun 22 12:09:01 2011 +0000
+++ b/mplayer.c	Wed Jun 22 12:12:50 2011 +0000
@@ -2537,7 +2537,7 @@
     }
 #ifdef CONFIG_GUI
     if (use_gui)
-        guiGetEvent(guiSetState, (char *)guiSetPause);
+        guiGetEvent(guiSetState, (void *)GUI_PAUSE);
 #endif
     if (mpctx->video_out && mpctx->sh_video && vo_config_count)
         mpctx->video_out->control(VOCTRL_PAUSE, NULL);
@@ -2601,10 +2601,10 @@
     (void)GetRelativeTime(); // ignore time that passed during pause
 #ifdef CONFIG_GUI
     if (use_gui) {
-        if (guiInfo.Playing == guiSetStop)
+        if (guiInfo.Playing == GUI_STOP)
             mpctx->eof = 1;
         else
-            guiGetEvent(guiSetState, (char *)guiSetPlay);
+            guiGetEvent(guiSetState, (void *)GUI_PLAY);
     }
 #endif
 }