[PATCH 1/5] winegstreamer: Translate GST_AUDIO_CHANNEL_POSITION_MONO to SPEAKER_FRONT_CENTER.
Zebediah Figura
zfigura at codeweavers.com
Thu Oct 7 10:47:06 CDT 2021
Signed-off-by: Zebediah Figura <zfigura at codeweavers.com>
---
dlls/winegstreamer/wg_parser.c | 5 ++++-
1 file changed, 4 insertions(+), 1 deletion(-)
diff --git a/dlls/winegstreamer/wg_parser.c b/dlls/winegstreamer/wg_parser.c
index 0c23ae6d351..c3c9051a174 100644
--- a/dlls/winegstreamer/wg_parser.c
+++ b/dlls/winegstreamer/wg_parser.c
@@ -159,7 +159,10 @@ static uint32_t wg_channel_position_from_gst(GstAudioChannelPosition position)
SPEAKER_TOP_BACK_CENTER,
};
- if (position < ARRAY_SIZE(position_map))
+ if (position == GST_AUDIO_CHANNEL_POSITION_MONO)
+ return SPEAKER_FRONT_CENTER;
+
+ if (position >= 0 && position < ARRAY_SIZE(position_map))
return position_map[position];
return 0;
}
--
2.33.0
More information about the wine-devel
mailing list