mirror of
https://github.com/mpv-player/mpv
synced 2025-02-25 01:37:21 +00:00
add an option to force audio recording when a tv card reports no audio sources
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7836 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3ab85b9191
commit
5714b89de2
@ -227,6 +227,7 @@ struct config tvopts_conf[]={
|
||||
{"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
|
||||
|
@ -59,6 +59,7 @@ int tv_param_bass = -1;
|
||||
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
|
||||
|
@ -31,6 +31,7 @@ extern int tv_param_bass;
|
||||
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
|
||||
|
@ -492,7 +492,7 @@ static int init(priv_t *priv)
|
||||
/* 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) {
|
||||
|
Loading…
Reference in New Issue
Block a user