[Mplayer-cvslog] CVS: main mplayer.c,1.769,1.770
Joey Parrish CVS
syncmail at mplayerhq.hu
Sun Aug 22 21:01:58 CEST 2004
CVS change done by Joey Parrish CVS
Update of /cvsroot/mplayer/main
In directory mail:/var2/tmp/cvs-serv27774
Modified Files:
mplayer.c
Log Message:
added runtime toggle of root window playback
only directx supports this at the moment
Index: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.769
retrieving revision 1.770
diff -u -r1.769 -r1.770
--- mplayer.c 22 Aug 2004 18:47:47 -0000 1.769
+++ mplayer.c 22 Aug 2004 19:01:55 -0000 1.770
@@ -749,6 +749,7 @@
int osd_show_percentage = 0;
int osd_show_tv_channel = 25;
int osd_show_ontop = 0;
+int osd_show_rootwin = 0;
int osd_show_framedropping = 0;
int rtc_fd=-1;
@@ -3043,6 +3044,17 @@
}
} break;
+ case MP_CMD_VO_ROOTWIN:
+ {
+ if(video_out && vo_config_count) {
+ video_out->control(VOCTRL_ROOTWIN, 0);
+#ifdef USE_OSD
+ osd_show_rootwin=10;
+ vo_osd_changed(OSDTYPE_SUBTITLE);
+#endif
+ }
+
+ } break;
case MP_CMD_PANSCAN : {
if ( !video_out ) break;
if ( video_out->control( VOCTRL_GET_PANSCAN,NULL ) == VO_TRUE )
@@ -3640,6 +3652,9 @@
} else if (osd_show_ontop) {
snprintf(osd_text_tmp, 63, "Stay on top: %sabled", vo_ontop?"en":"dis");
osd_show_ontop--;
+ } else if (osd_show_rootwin) {
+ snprintf(osd_text_tmp, 63, "Rootwin: %sabled", vo_rootwin?"en":"dis");
+ osd_show_rootwin--;
} else if (osd_show_framedropping) {
snprintf(osd_text_tmp, 63, "Framedropping: %s",
(frame_dropping == 1 ? "on" :
More information about the MPlayer-cvslog
mailing list