Mercurial > mplayer.hg
comparison 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 |
comparison
equal
deleted
inserted
replaced
10578:b9d289fd8a57 | 10579:f25d93203a71 |
---|---|
2791 } break; | 2791 } break; |
2792 case MP_CMD_TV_SET_CONTRAST : { | 2792 case MP_CMD_TV_SET_CONTRAST : { |
2793 if (file_format == DEMUXER_TYPE_TV) | 2793 if (file_format == DEMUXER_TYPE_TV) |
2794 tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_CONTRAST, cmd->args[0].v.i); | 2794 tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_CONTRAST, cmd->args[0].v.i); |
2795 } break; | 2795 } break; |
2796 case MP_CMD_TV_SET_BRIGHTNESS : { | |
2797 if (file_format == DEMUXER_TYPE_TV) | |
2798 tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_BRIGHTNESS, cmd->args[0].v.i); | |
2799 } break; | |
2800 case MP_CMD_TV_SET_HUE : { | |
2801 if (file_format == DEMUXER_TYPE_TV) | |
2802 tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_HUE, cmd->args[0].v.i); | |
2803 } break; | |
2804 case MP_CMD_TV_SET_SATURATION : { | |
2805 if (file_format == DEMUXER_TYPE_TV) | |
2806 tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_SATURATION, cmd->args[0].v.i); | |
2807 } break; | |
2808 case MP_CMD_TV_SET_CONTRAST : { | |
2809 if (file_format == DEMUXER_TYPE_TV) | |
2810 tv_set_color_options((tvi_handle_t*)(demuxer->priv), TV_COLOR_CONTRAST, cmd->args[0].v.i); | |
2811 } break; | |
2796 case MP_CMD_TV_STEP_CHANNEL : { | 2812 case MP_CMD_TV_STEP_CHANNEL : { |
2797 if (file_format == DEMUXER_TYPE_TV) { | 2813 if (file_format == DEMUXER_TYPE_TV) { |
2798 int v = cmd->args[0].v.i; | 2814 int v = cmd->args[0].v.i; |
2799 if(v > 0){ | 2815 if(v > 0){ |
2800 tv_step_channel((tvi_handle_t*)(demuxer->priv), TV_CHANNEL_HIGHER); | 2816 tv_step_channel((tvi_handle_t*)(demuxer->priv), TV_CHANNEL_HIGHER); |