If we have a tuner, use that as a reason we have audio support, and do

not depend on audioset.
(patch by Jesse Allen <the3dfxdude _at_ gmail.com>)


git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@17766 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
aurel 2006-03-08 00:21:44 +00:00
parent 6a2cfc6f1f
commit 0177d932d4
1 changed files with 2 additions and 3 deletions

View File

@ -545,12 +545,11 @@ static int control(priv_t *priv, int cmd, void *arg)
struct v4l2_frequency frequency;
switch(cmd) {
case TVI_CONTROL_IS_AUDIO:
if (tv_param_force_audio) return TVI_CONTROL_TRUE;
return priv->input.audioset ? TVI_CONTROL_TRUE: TVI_CONTROL_FALSE;
case TVI_CONTROL_IS_VIDEO:
return priv->capability.capabilities & V4L2_CAP_VIDEO_CAPTURE?
TVI_CONTROL_TRUE: TVI_CONTROL_FALSE;
case TVI_CONTROL_IS_AUDIO:
if (tv_param_force_audio) return TVI_CONTROL_TRUE;
case TVI_CONTROL_IS_TUNER:
return priv->capability.capabilities & V4L2_CAP_TUNER?
TVI_CONTROL_TRUE: TVI_CONTROL_FALSE;