Mercurial > mplayer.hg
changeset 7835:d489890c59d3
add an option to force audio recording when a tv card reports no audio sources
author | henry |
---|---|
date | Tue, 22 Oct 2002 07:56:13 +0000 |
parents | 830f10ad97ac |
children | 6bfe33dc531e |
files | cfg-common.h libmpdemux/tv.c libmpdemux/tv.h libmpdemux/tvi_v4l.c |
diffstat | 4 files changed, 4 insertions(+), 1 deletions(-) [+] |
line wrap: on
line diff
--- a/cfg-common.h Tue Oct 22 07:29:09 2002 +0000 +++ b/cfg-common.h Tue Oct 22 07:56:13 2002 +0000 @@ -227,6 +227,7 @@ {"treble", &tv_param_treble, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL}, {"balance", &tv_param_balance, CONF_TYPE_INT, CONF_RANGE, 0, 65535, NULL}, {"forcechan", &tv_param_forcechan, CONF_TYPE_INT, CONF_RANGE, 1, 2, NULL}, + {"forceaudio", &tv_param_force_audio, CONF_TYPE_FLAG, 0, 0, 1, NULL}, #ifdef HAVE_ALSA9 {"alsa", &tv_param_alsa, CONF_TYPE_FLAG, 0, 0, 1, NULL}, #endif
--- a/libmpdemux/tv.c Tue Oct 22 07:29:09 2002 +0000 +++ b/libmpdemux/tv.c Tue Oct 22 07:56:13 2002 +0000 @@ -59,6 +59,7 @@ int tv_param_treble = -1; int tv_param_balance = -1; int tv_param_forcechan = -1; +int tv_param_force_audio = 0; #ifdef HAVE_ALSA9 int tv_param_alsa = 0; #endif
--- a/libmpdemux/tv.h Tue Oct 22 07:29:09 2002 +0000 +++ b/libmpdemux/tv.h Tue Oct 22 07:56:13 2002 +0000 @@ -31,6 +31,7 @@ extern int tv_param_treble; extern int tv_param_balance; extern int tv_param_forcechan; +extern int tv_param_force_audio; #ifdef HAVE_ALSA9 extern int tv_param_alsa; #endif
--- a/libmpdemux/tvi_v4l.c Tue Oct 22 07:29:09 2002 +0000 +++ b/libmpdemux/tvi_v4l.c Tue Oct 22 07:56:13 2002 +0000 @@ -492,7 +492,7 @@ /* init v4l audio even when we don't capture */ init_v4l_audio(priv); - if (!priv->capability.audios) tv_param_noaudio = 1; + if (!priv->capability.audios && !tv_param_force_audio) tv_param_noaudio = 1; /* audio init */ if (!tv_param_noaudio) {