aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-11 16:29:26 +0000
committerGravatar alex <alex@b3059339-0415-0410-9bf9-f77b7e298cf2>2001-11-11 16:29:26 +0000
commit85fdc7beb5d39748386decefd2470fddbf49b307 (patch)
tree69b1c52169ce6f3070ae093b8caf68cf36895826
parent6bf5d6a2629e67151df72286a269a079c7071056 (diff)
don't set freq if channel isn't capable
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@2843 b3059339-0415-0410-9bf9-f77b7e298cf2
-rw-r--r--libmpdemux/tv.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libmpdemux/tv.c b/libmpdemux/tv.c
index a17d639924..7f92dbf563 100644
--- a/libmpdemux/tv.c
+++ b/libmpdemux/tv.c
@@ -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;