Mercurial > mplayer.hg
diff mplayer.c @ 10579:f25d93203a71
From: Kir Kostuchenko <kir@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.
author | gabucino |
---|---|
date | Tue, 12 Aug 2003 11:32:51 +0000 |
parents | 7e5733a8c33b |
children | e4c79edf2be9 |
line wrap: on
line diff
--- a/mplayer.c Tue Aug 12 08:24:24 2003 +0000 +++ b/mplayer.c Tue Aug 12 11:32:51 2003 +0000 @@ -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;