mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-18 07:47:17 +00:00
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:
parent
a4ea62ef5b
commit
5d76ddb466
1 changed files with 1 additions and 3 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue