ao_alsa: hackfix mono playback

ALSA returns "FL" as channel layout when trying to play mono. mpv and
libavresample don't like this; in particular, using libavresample to
convert stereo to "FL" fails.
This commit is contained in:
wm4
2014-12-08 00:02:45 +01:00
committed by Alessandro Ghedini
parent 083235d91f
commit 1bfaab13ca
+3
View File
@@ -635,6 +635,9 @@ static int init(struct ao *ao)
MP_WARN(ao, "Got unknown channel map from ALSA.\n");
}
if (ao->channels.num == 1)
ao->channels.speaker[0] = MP_SP(FC);
free(alsa_chmap);
}
#endif