From 333d568ec7f0039510fcc20dba7b2eb99005f1a9 Mon Sep 17 00:00:00 2001 From: Arun Raghavan Date: Wed, 19 Sep 2012 09:15:53 +0530 Subject: [PATCH] directsoundsink: Specify endianness in IEC 61937 payloading DirectSound expects native endian byte order. https://bugzilla.gnome.org/show_bug.cgi?id=678021 --- sys/directsound/gstdirectsoundsink.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/directsound/gstdirectsoundsink.c b/sys/directsound/gstdirectsoundsink.c index daa72145b4..9626e697c1 100644 --- a/sys/directsound/gstdirectsoundsink.c +++ b/sys/directsound/gstdirectsoundsink.c @@ -807,7 +807,7 @@ gst_directsound_sink_payload (GstAudioBaseSink * sink, GstBuffer * buf) return NULL; } success = gst_audio_iec61937_payload (infobuf.data, infobuf.size, - infoout.data, infoout.size, &sink->ringbuffer->spec); + infoout.data, infoout.size, &sink->ringbuffer->spec, G_BYTE_ORDER); if (!success) { gst_buffer_unmap (out, &infoout); gst_buffer_unmap (buf, &infobuf); -- 2.34.1