Mercurial > mplayer.hg
comparison stream/tv.c @ 24751:fce055542191
10l: routine sets norm from parameter, but prints value of tv norm option
(which can be not equal to parameter).
author | voroshil |
---|---|
date | Sun, 14 Oct 2007 05:45:20 +0000 |
parents | af0540caadd1 |
children | 21bddf1a7126 |
comparison
equal
deleted
inserted
replaced
24750:af0540caadd1 | 24751:fce055542191 |
---|---|
1043 | 1043 |
1044 int tv_set_norm(tvi_handle_t *tvh, char* norm) | 1044 int tv_set_norm(tvi_handle_t *tvh, char* norm) |
1045 { | 1045 { |
1046 tvh->norm = norm_from_string(tvh, norm); | 1046 tvh->norm = norm_from_string(tvh, norm); |
1047 | 1047 |
1048 mp_msg(MSGT_TV, MSGL_V, MSGTR_TV_SelectedNorm, tvh->tv_param->norm); | 1048 mp_msg(MSGT_TV, MSGL_V, MSGTR_TV_SelectedNorm, norm); |
1049 if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM, &tvh->norm) != TVI_CONTROL_TRUE) { | 1049 if (tvh->functions->control(tvh->priv, TVI_CONTROL_TUN_SET_NORM, &tvh->norm) != TVI_CONTROL_TRUE) { |
1050 mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_CannotSetNorm); | 1050 mp_msg(MSGT_TV, MSGL_ERR, MSGTR_TV_CannotSetNorm); |
1051 return 0; | 1051 return 0; |
1052 } | 1052 } |
1053 tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param); | 1053 tvh->functions->control(tvh->priv,TV_VBI_CONTROL_RESET,tvh->tv_param); |