summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-09-19 09:17:03 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2012-09-19 09:18:19 +0530
commitc9821d31f8bed27ec58f01ef1f7e83f1d1a28fba (patch)
treea103eb0441a5143963f613fbd09c66ab081f7954 /sys
parent333d568ec7f0039510fcc20dba7b2eb99005f1a9 (diff)
osxaudiosink: Specify endianness in IEC 61937 payloading
Corresponds to an API change in gst-plugins-base. This needs to be fixed to query the expected byte order using appropriate API. https://bugzilla.gnome.org/show_bug.cgi?id=678021
Diffstat (limited to 'sys')
-rw-r--r--sys/osxaudio/gstosxaudiosink.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/osxaudio/gstosxaudiosink.c b/sys/osxaudio/gstosxaudiosink.c
index cee9ec83c..ec5927312 100644
--- a/sys/osxaudio/gstosxaudiosink.c
+++ b/sys/osxaudio/gstosxaudiosink.c
@@ -397,9 +397,10 @@ gst_osx_audio_sink_sink_payload (GstBaseAudioSink * sink, GstBuffer * buf)
out = gst_buffer_new_and_alloc (framesize);
+ /* FIXME: the endianness needs to be queried and then set */
if (!gst_audio_iec61937_payload (GST_BUFFER_DATA (buf),
GST_BUFFER_SIZE (buf), GST_BUFFER_DATA (out),
- GST_BUFFER_SIZE (out), &sink->ringbuffer->spec)) {
+ GST_BUFFER_SIZE (out), &sink->ringbuffer->spec, G_BYTE_ORDER)) {
gst_buffer_unref (out);
return NULL;
}