diff --git a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudio.c b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudio.c index 6246754ec2..0fd4a2798b 100644 --- a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudio.c +++ b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudio.c @@ -23,7 +23,6 @@ #include "gstosxcoreaudio.h" #include "gstosxcoreaudiocommon.h" -#include GST_DEBUG_CATEGORY (osx_coreaudio_debug); #define GST_CAT_DEFAULT osx_coreaudio_debug @@ -34,6 +33,7 @@ G_DEFINE_TYPE (GstCoreAudio, gst_core_audio, G_TYPE_OBJECT); #include "gstosxcoreaudioremoteio.c" #else #include "gstosxcoreaudiohal.c" +#include #endif enum @@ -425,10 +425,12 @@ gst_core_audio_select_device (GstCoreAudio * core_audio) { gboolean ret = gst_core_audio_select_device_impl (core_audio); +#ifndef HAVE_IOS if (core_audio->device_id != kAudioDeviceUnknown) core_audio->unique_id = gst_core_audio_device_get_prop (core_audio->device_id, kAudioDevicePropertyDeviceUID); +#endif return ret; } diff --git a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiocommon.c b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiocommon.c index b34c12fae5..bec30f23c5 100644 --- a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiocommon.c +++ b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiocommon.c @@ -560,6 +560,7 @@ gst_core_audio_dump_channel_layout (AudioChannelLayout * channel_layout) } } +#ifndef HAVE_IOS char * gst_core_audio_device_get_prop (AudioDeviceID device_id, AudioObjectPropertyElement prop_id) @@ -607,3 +608,4 @@ gst_core_audio_device_get_prop (AudioDeviceID device_id, beach: return result; } +#endif diff --git a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiocommon.h b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiocommon.h index e8c0f8e80d..4d204c5440 100644 --- a/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiocommon.h +++ b/subprojects/gst-plugins-good/sys/osxaudio/gstosxcoreaudiocommon.h @@ -69,7 +69,9 @@ AudioChannelLabel gst_audio_channel_position_to_core_audio (GstAudioChannelPosit GstAudioChannelPosition gst_core_audio_channel_label_to_gst (AudioChannelLabel label, int channel, gboolean warn); +#ifndef HAVE_IOS char * gst_core_audio_device_get_prop (AudioDeviceID device_id, AudioObjectPropertyElement prop_id); +#endif G_END_DECLS