mirror of
https://github.com/mpv-player/mpv
synced 2024-12-14 19:05:33 +00:00
minor fixes in forceaudio option
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@7845 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
3d100efa41
commit
2508ca0ccd
@ -515,7 +515,15 @@ static int init(priv_t *priv)
|
||||
else
|
||||
priv->audio_id = 0;
|
||||
audio_in_set_samplerate(&priv->audio_in, 44100);
|
||||
audio_in_set_channels(&priv->audio_in, priv->audio_channels[priv->audio_id]);
|
||||
if (priv->capability.audios) {
|
||||
audio_in_set_channels(&priv->audio_in, priv->audio_channels[priv->audio_id]);
|
||||
} else {
|
||||
if (tv_param_forcechan >= 0) {
|
||||
audio_in_set_channels(&priv->audio_in, tv_param_forcechan);
|
||||
} else {
|
||||
audio_in_set_channels(&priv->audio_in, 2);
|
||||
}
|
||||
}
|
||||
if (audio_in_setup(&priv->audio_in) < 0) return 0;
|
||||
setup_audio_buffer_sizes(priv);
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user