# HG changeset patch # User alex # Date 1005496166 0 # Node ID aebdcb39cadb4990c8f5f55630fe0dd43c47f2f6 # Parent 7ff47d6ae6e966a8627895de13624e9790a44c3e don't set freq if channel isn't capable diff -r 7ff47d6ae6e9 -r aebdcb39cadb libmpdemux/tv.c --- 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;