1
0
mirror of https://github.com/mpv-player/mpv synced 2024-12-27 09:32:40 +00:00

ao_wasapi: Also do passthrough for AF_FORMAT_MPEG2

That's the sample format ad_spdif uses when the source is MP3.
This commit is contained in:
Diogo Franco (Kovensky) 2013-07-20 13:58:04 -03:00 committed by wm4
parent dcf38e0190
commit a8b4be274c

View File

@ -428,7 +428,7 @@ static int find_formats(struct ao *const ao)
{
struct wasapi_state *state = (struct wasapi_state *)ao->priv;
if (AF_FORMAT_IS_IEC61937(ao->format)) {
if (AF_FORMAT_IS_IEC61937(ao->format) || ao->format == AF_FORMAT_MPEG2) {
if (try_passthrough(state, ao))
return 0;