Mercurial > mplayer.hg
comparison libmpdemux/tv.c @ 2842:aebdcb39cadb
don't set freq if channel isn't capable
author | alex |
---|---|
date | Sun, 11 Nov 2001 16:29:26 +0000 |
parents | c63562f5f56f |
children | bce9c945b29c |
comparison
equal
deleted
inserted
replaced
2841:7ff47d6ae6e9 | 2842:aebdcb39cadb |
---|---|
224 | 224 |
225 /* set some params got from cmdline */ | 225 /* set some params got from cmdline */ |
226 funcs->control(tvh->priv, TVI_CONTROL_SPC_SET_INPUT, &tv_param_input); | 226 funcs->control(tvh->priv, TVI_CONTROL_SPC_SET_INPUT, &tv_param_input); |
227 | 227 |
228 /* we need to set frequency */ | 228 /* we need to set frequency */ |
229 if (tv_param_freq) | 229 if (tv_param_freq && (funcs->control(tvh->priv, TVI_CONTROL_IS_TUNER, 0) == TVI_CONTROL_TRUE)) |
230 { | 230 { |
231 unsigned long freq = atof(tv_param_freq)*16; | 231 unsigned long freq = atof(tv_param_freq)*16; |
232 | 232 |
233 printf("freq: %lu\n", freq); | 233 printf("freq: %lu\n", freq); |
234 | 234 |