mirror of https://github.com/mpv-player/mpv
don't set freq if channel isn't capable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2843 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
6bf5d6a262
commit
85fdc7beb5
|
@ -226,7 +226,7 @@ no_audio:
|
|||
funcs->control(tvh->priv, TVI_CONTROL_SPC_SET_INPUT, &tv_param_input);
|
||||
|
||||
/* we need to set frequency */
|
||||
if (tv_param_freq)
|
||||
if (tv_param_freq && (funcs->control(tvh->priv, TVI_CONTROL_IS_TUNER, 0) == TVI_CONTROL_TRUE))
|
||||
{
|
||||
unsigned long freq = atof(tv_param_freq)*16;
|
||||
|
||||
|
|
Loading…
Reference in New Issue