directsoundsink: Specify endianness in IEC 61937 payloading
authorArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 19 Sep 2012 03:45:53 +0000 (09:15 +0530)
committerArun Raghavan <arun.raghavan@collabora.co.uk>
Wed, 19 Sep 2012 03:48:19 +0000 (09:18 +0530)
DirectSound expects native endian byte order.

https://bugzilla.gnome.org/show_bug.cgi?id=678021

sys/directsound/gstdirectsoundsink.c

index daa7214..9626e69 100644 (file)
@@ -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);