# HG changeset patch # User gabucino # Date 1060694752 0 # Node ID 4ebff25d9a05f1453efcd2893338cf1ec10f815b # Parent e4c79edf2be988bc61f8cab5eacb8e84c8eeb074 From: Kir Kostuchenko 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. This is the correct patch, sorry for the confusion. diff -r e4c79edf2be9 -r 4ebff25d9a05 libmpdemux/tv.c --- a/libmpdemux/tv.c Tue Aug 12 13:22:35 2003 +0000 +++ b/libmpdemux/tv.c Tue Aug 12 13:25:52 2003 +0000 @@ -496,20 +496,12 @@ /* set height */ funcs->control(tvh->priv, TVI_CONTROL_VID_GET_HEIGHT, &sh_video->disp_h); - /* set color eq */ - tv_set_color_options(tvh, TV_COLOR_BRIGHTNESS, tv_param_brightness); - tv_set_color_options(tvh, TV_COLOR_HUE, tv_param_hue); - tv_set_color_options(tvh, TV_COLOR_SATURATION, tv_param_saturation); - tv_set_color_options(tvh, TV_COLOR_CONTRAST, tv_param_contrast); - demuxer->video->sh = sh_video; sh_video->ds = demuxer->video; demuxer->video->id = 0; - demuxer->seekable = 0; /* here comes audio init */ - if (tv_param_noaudio == 0 && funcs->control(tvh->priv, TVI_CONTROL_IS_AUDIO, 0) == TVI_CONTROL_TRUE) { int audio_format; @@ -586,6 +578,13 @@ tv_uninit(tvh); return 0; } + + /* set color eq */ + tv_set_color_options(tvh, TV_COLOR_BRIGHTNESS, tv_param_brightness); + tv_set_color_options(tvh, TV_COLOR_HUE, tv_param_hue); + tv_set_color_options(tvh, TV_COLOR_SATURATION, tv_param_saturation); + tv_set_color_options(tvh, TV_COLOR_CONTRAST, tv_param_contrast); + return 1; }