[MPlayer-cvslog] CVS: main mplayer.c,1.895,1.896
Oded Shimon CVS
syncmail at mplayerhq.hu
Sun Dec 25 20:22:50 CET 2005
CVS change done by Oded Shimon CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv911
Modified Files:
mplayer.c
Log Message:
add "pausing_keep" and "pausing_toggle" input cmd prefixes
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.895
retrieving revision 1.896
diff -u -r1.895 -r1.896
--- mplayer.c 25 Dec 2005 18:26:35 -0000 1.895
+++ mplayer.c 25 Dec 2005 19:22:47 -0000 1.896
@@ -2448,6 +2448,7 @@
float next_frame_time=0;
int frame_time_remaining=0; // flag
int blit_frame=0;
+int was_paused=0;
osd_text_buffer[0]=0;
// make sure OSD old does not stay around,
@@ -3047,6 +3048,7 @@
guiGetEvent( guiCEvent,(char *)guiSetPlay );
}
#endif
+ was_paused = 1;
}
// handle -sstep
@@ -4129,11 +4131,20 @@
mp_msg(MSGT_CPLAYER, MSGL_V, "Received unknown cmd %s\n",cmd->name);
}
}
- if (cmd->pausing)
- osd_function = OSD_PAUSE;
+ switch (cmd->pausing) {
+ case 1: // "pausing"
+ osd_function = OSD_PAUSE;
+ break;
+ case 3: // "pausing_toggle"
+ was_paused = !was_paused;
+ // fall through
+ case 2: // "pausing_keep"
+ if (was_paused) osd_function = OSD_PAUSE;
+ }
mp_cmd_free(cmd);
}
}
+ was_paused = 0;
if (seek_to_sec) {
int a,b; float d;
More information about the MPlayer-cvslog
mailing list