mirror of
https://github.com/mpv-player/mpv
synced 2025-02-28 11:20:56 +00:00
set channel count to a saner value if the card reports an unknown audio mode
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@8336 b3059339-0415-0410-9bf9-f77b7e298cf2
This commit is contained in:
parent
9aade9cab3
commit
5aa4f5cc39
@ -357,6 +357,11 @@ static void init_v4l_audio(priv_t *priv)
|
||||
case VIDEO_SOUND_STEREO:
|
||||
priv->audio_channels[i] = 2;
|
||||
break;
|
||||
default:
|
||||
mp_msg(MSGT_TV, MSGL_ERR, "Card reports an unknown audio mode !\n");
|
||||
mp_msg(MSGT_TV, MSGL_ERR, "Trying two channel audio. Use forcechan to override.\n");
|
||||
priv->audio_channels[i] = 2;
|
||||
break;
|
||||
}
|
||||
|
||||
if (reqmode >= 0 && priv->audio[i].mode != reqmode) {
|
||||
|
Loading…
Reference in New Issue
Block a user