changeset 10884:bbdaa93c469e

slave mode commands to print out vo_fs and sub_visibility globals, patch by Mike Swieton <swietonm at student.gvsu.edu>
author faust3
date Fri, 19 Sep 2003 20:44:30 +0000
parents 5977670f744e
children 685c416f12b5
files input/input.c input/input.h mplayer.c
diffstat 3 files changed, 18 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- a/input/input.c	Fri Sep 19 20:07:50 2003 +0000
+++ b/input/input.c	Fri Sep 19 20:44:30 2003 +0000
@@ -127,6 +127,9 @@
   { MP_CMD_CHIDE, "hide", 0, { {MP_CMD_ARG_INT,{3000}}, {-1,{0}} } },
   { MP_CMD_CRUN, "run", 1, { {MP_CMD_ARG_STRING,{0}}, {-1,{0}} } },
 #endif
+ 
+  { MP_CMD_GET_VO_FULLSCREEN, "get_vo_fullscreen", 0, { {-1,{0}} } },
+  { MP_CMD_GET_SUB_VISIBILITY, "get_sub_visibility", 0, { {-1,{0}} } },
   
   { 0, NULL, 0, {} }
 };
--- a/input/input.h	Fri Sep 19 20:07:50 2003 +0000
+++ b/input/input.h	Fri Sep 19 20:44:30 2003 +0000
@@ -49,6 +49,8 @@
 #define MP_CMD_TV_SET_CONTRAST 45
 #define MP_CMD_TV_SET_HUE 46
 #define MP_CMD_TV_SET_SATURATION 47
+#define MP_CMD_GET_VO_FULLSCREEN 48
+#define MP_CMD_GET_SUB_VISIBILITY 49
 
 #define MP_CMD_GUI_EVENTS       5000
 #define MP_CMD_GUI_LOADFILE     5001
--- a/mplayer.c	Fri Sep 19 20:07:50 2003 +0000
+++ b/mplayer.c	Fri Sep 19 20:44:30 2003 +0000
@@ -3033,6 +3033,14 @@
       }
 #endif
     } break;
+    case MP_CMD_GET_SUB_VISIBILITY:
+	{
+#ifdef USE_SUB
+	if (sh_video) {
+		mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_SUB_VISIBILITY=%ld\n", sub_visibility);
+	}
+#endif
+	} break;
     case MP_CMD_VOBSUB_LANG:
     if (vo_vobsub)
     {
@@ -3066,6 +3074,11 @@
 	mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_LENGTH=%ld\n", demuxer_get_time_length(demuxer));
     } break;
 
+	case MP_CMD_GET_VO_FULLSCREEN : {
+	if(video_out && vo_config_count)
+		mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_VO_FULLSCREEN=%ld\n", vo_fs);
+	} break;
+    
     case MP_CMD_GET_PERCENT_POS : {
 	mp_msg(MSGT_GLOBAL,MSGL_INFO,"ANS_PERCENT_POSITION=%ld\n", demuxer_get_percent_pos(demuxer));
     } break;