From: Sebastian Dröge Date: Mon, 22 Dec 2014 11:56:05 +0000 (+0100) Subject: osxaudio: Also set the big endian flag for floating point samples X-Git-Tag: 1.6.0~692 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=b83cd14a12ee7a778d7a437bb19df95710f27e3f;p=platform%2Fupstream%2Fgst-plugins-good.git osxaudio: Also set the big endian flag for floating point samples --- diff --git a/sys/osxaudio/gstosxaudioringbuffer.c b/sys/osxaudio/gstosxaudioringbuffer.c index 7f9b86f..e191910 100644 --- a/sys/osxaudio/gstosxaudioringbuffer.c +++ b/sys/osxaudio/gstosxaudioringbuffer.c @@ -207,10 +207,12 @@ gst_osx_audio_ring_buffer_acquire (GstAudioRingBuffer * buf, } else { format.mFormatFlags |= kAudioFormatFlagIsAlignedHigh; } - if (GST_AUDIO_INFO_IS_BIG_ENDIAN (&spec->info)) { - format.mFormatFlags |= kAudioFormatFlagIsBigEndian; - } } + + if (GST_AUDIO_INFO_IS_BIG_ENDIAN (&spec->info)) { + format.mFormatFlags |= kAudioFormatFlagIsBigEndian; + } + format.mBytesPerFrame = GST_AUDIO_INFO_BPF (&spec->info); format.mBitsPerChannel = depth; format.mBytesPerPacket = GST_AUDIO_INFO_BPF (&spec->info);