osxaudio: Also set the big endian flag for floating point samples
authorSebastian Dröge <sebastian@centricular.com>
Mon, 22 Dec 2014 11:56:05 +0000 (12:56 +0100)
committerSebastian Dröge <sebastian@centricular.com>
Mon, 22 Dec 2014 11:56:05 +0000 (12:56 +0100)
sys/osxaudio/gstosxaudioringbuffer.c

index 7f9b86fa479d53d415bfb8234c3eb778a5a7f659..e191910ef2288eaaf71457f1cef662efa1e8a090 100644 (file)
@@ -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);