1
mirror of https://github.com/mpv-player/mpv synced 2024-09-05 02:48:21 +02:00

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:
alex 2001-11-11 16:29:26 +00:00
parent 6bf5d6a262
commit 85fdc7beb5

View File

@ -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;