[Mplayer-cvslog] CVS: main/input input.c,1.78,1.79 input.h,1.34,1.35

Gabucino gabucino at mplayerhq.hu
Tue Aug 12 13:32:55 CEST 2003


Update of /cvsroot/mplayer/main/input
In directory mail:/var/tmp.root/cvs-serv19968/input

Modified Files:
	input.c input.h 
Log Message:
From: Kir Kostuchenko <kir at users.sourceforge.net>

   Hi, I found that command line options brightness, hue, contrast and
saturation does not works, becouse mplayer apply it, before open tv
(kernel says invalid ioctl). Here are simple fix. Please apply.



Index: input.c
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.c,v
retrieving revision 1.78
retrieving revision 1.79
diff -u -r1.78 -r1.79
--- input.c	12 Aug 2003 07:38:49 -0000	1.78
+++ input.c	12 Aug 2003 11:32:51 -0000	1.79
@@ -91,6 +91,10 @@
   { MP_CMD_TV_SET_CONTRAST, "tv_set_contrast", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
   { MP_CMD_TV_SET_HUE, "tv_set_hue", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
   { MP_CMD_TV_SET_SATURATION, "tv_set_saturation", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
+  { MP_CMD_TV_SET_BRIGHTNESS, "tv_set_brightness", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
+  { MP_CMD_TV_SET_CONTRAST, "tv_set_contrast", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
+  { MP_CMD_TV_SET_HUE, "tv_set_hue", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
+  { MP_CMD_TV_SET_SATURATION, "tv_set_saturation", 1,  { { MP_CMD_ARG_INT ,{0}}, {-1,{0}} }},
 #endif
   { MP_CMD_VO_FULLSCREEN, "vo_fullscreen", 0, { {-1,{0}} } },
   { MP_CMD_SCREENSHOT, "screenshot", 0, { {-1,{0}} } },

Index: input.h
===================================================================
RCS file: /cvsroot/mplayer/main/input/input.h,v
retrieving revision 1.34
retrieving revision 1.35
diff -u -r1.34 -r1.35
--- input.h	12 Aug 2003 07:38:49 -0000	1.34
+++ input.h	12 Aug 2003 11:32:51 -0000	1.35
@@ -49,6 +49,10 @@
 #define MP_CMD_TV_SET_CONTRAST 45
 #define MP_CMD_TV_SET_HUE 46
 #define MP_CMD_TV_SET_SATURATION 47
+#define MP_CMD_TV_SET_BRIGHTNESS 44
+#define MP_CMD_TV_SET_CONTRAST 45
+#define MP_CMD_TV_SET_HUE 46
+#define MP_CMD_TV_SET_SATURATION 47
 
 #define MP_CMD_GUI_EVENTS       5000
 #define MP_CMD_GUI_LOADFILE     5001



More information about the MPlayer-cvslog mailing list