osxcoreaudio: fix unused-but-set warning

../sys/osxaudio/gstosxcoreaudio.c:480:18: error: variable 'interleaved' set but not used [-Werror,-Wunused-but-set-variable]
  gboolean sign, interleaved;
                 ^

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2046>
This commit is contained in:
Matthew Waters 2022-03-28 18:12:03 +11:00 committed by GStreamer Marge Bot
parent a4ea62ef5b
commit 5d76ddb466

View file

@ -477,7 +477,7 @@ gst_core_audio_asbd_to_caps (AudioStreamBasicDescription * asbd,
GstAudioFormat format = GST_AUDIO_FORMAT_UNKNOWN; GstAudioFormat format = GST_AUDIO_FORMAT_UNKNOWN;
guint rate, channels, bps, endianness; guint rate, channels, bps, endianness;
guint64 channel_mask; guint64 channel_mask;
gboolean sign, interleaved; gboolean sign;
GstAudioChannelPosition pos[GST_OSX_AUDIO_MAX_CHANNEL]; GstAudioChannelPosition pos[GST_OSX_AUDIO_MAX_CHANNEL];
if (asbd->mFormatID != kAudioFormatLinearPCM) { if (asbd->mFormatID != kAudioFormatLinearPCM) {
@ -505,8 +505,6 @@ gst_core_audio_asbd_to_caps (AudioStreamBasicDescription * asbd,
endianness = asbd->mFormatFlags & kAudioFormatFlagIsBigEndian ? endianness = asbd->mFormatFlags & kAudioFormatFlagIsBigEndian ?
G_BIG_ENDIAN : G_LITTLE_ENDIAN; G_BIG_ENDIAN : G_LITTLE_ENDIAN;
sign = asbd->mFormatFlags & kAudioFormatFlagIsSignedInteger ? TRUE : FALSE; sign = asbd->mFormatFlags & kAudioFormatFlagIsSignedInteger ? TRUE : FALSE;
interleaved = asbd->mFormatFlags & kAudioFormatFlagIsNonInterleaved ?
TRUE : FALSE;
if (asbd->mFormatFlags & kAudioFormatFlagIsFloat) { if (asbd->mFormatFlags & kAudioFormatFlagIsFloat) {
if (bps == 32) { if (bps == 32) {