changeset 2842:aebdcb39cadb

don't set freq if channel isn't capable
author alex
date Sun, 11 Nov 2001 16:29:26 +0000
parents 7ff47d6ae6e9
children 5be2017077fb
files libmpdemux/tv.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/libmpdemux/tv.c	Sun Nov 11 16:28:12 2001 +0000
+++ b/libmpdemux/tv.c	Sun Nov 11 16:29:26 2001 +0000
@@ -226,7 +226,7 @@
     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;