[Mplayer-cvslog] CVS: main mplayer.c,1.713,1.714
Gabucino
gabucino at mplayerhq.hu
Tue Aug 12 13:33:17 CEST 2003
Update of /cvsroot/mplayer/main
In directory mail:/var/tmp.root/cvs-serv19968
Modified Files:
mplayer.c
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: mplayer.c
===================================================================
RCS file: /cvsroot/mplayer/main/mplayer.c,v
retrieving revision 1.713
retrieving revision 1.714
diff -u -r1.713 -r1.714
--- mplayer.c 12 Aug 2003 07:38:12 -0000 1.713
+++ mplayer.c 12 Aug 2003 11:32:20 -0000 1.714
@@ -2793,6 +2793,22 @@
if (file_format == DEMUXER_TYPE_TV)
tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_CONTRAST, cmd->args[0].v.i);
} break;
+ case MP_CMD_TV_SET_BRIGHTNESS : {
+ if (file_format == DEMUXER_TYPE_TV)
+ tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_BRIGHTNESS, cmd->args[0].v.i);
+ } break;
+ case MP_CMD_TV_SET_HUE : {
+ if (file_format == DEMUXER_TYPE_TV)
+ tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_HUE, cmd->args[0].v.i);
+ } break;
+ case MP_CMD_TV_SET_SATURATION : {
+ if (file_format == DEMUXER_TYPE_TV)
+ tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_SATURATION, cmd->args[0].v.i);
+ } break;
+ case MP_CMD_TV_SET_CONTRAST : {
+ if (file_format == DEMUXER_TYPE_TV)
+ tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_CONTRAST, cmd->args[0].v.i);
+ } break;
case MP_CMD_TV_STEP_CHANNEL : {
if (file_format == DEMUXER_TYPE_TV) {
int v = cmd->args[0].v.i;
More information about the MPlayer-cvslog
mailing list