From f33954ae1d3b3aa8c044e7e72e9a628bcee5bc0b Mon Sep 17 00:00:00 2001 From: Ilya Konstantinov Date: Wed, 15 Apr 2015 18:29:14 +0300 Subject: [PATCH] osxaudiosrc: avoid get_channel_layout This only produces a warning and serves no purpose. https://bugzilla.gnome.org/show_bug.cgi?id=743758 --- sys/osxaudio/gstosxcoreaudio.c | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/sys/osxaudio/gstosxcoreaudio.c b/sys/osxaudio/gstosxcoreaudio.c index 60983a8cb4..9dd75325fd 100644 --- a/sys/osxaudio/gstosxcoreaudio.c +++ b/sys/osxaudio/gstosxcoreaudio.c @@ -566,7 +566,10 @@ gst_core_audio_probe_caps (GstCoreAudio * core_audio, GstCaps * in_caps) /* Collect info about the HW capabilites and preferences */ spdif_allowed = gst_core_audio_audio_device_is_spdif_avail (core_audio->device_id); - layout = gst_core_audio_get_channel_layout (core_audio, TRUE); + if (!core_audio->is_src) + layout = gst_core_audio_get_channel_layout (core_audio, TRUE); + else + layout = NULL; /* no supported for sources */ GST_DEBUG_OBJECT (core_audio, "Selected device ID: %u SPDIF allowed: %d", (unsigned) core_audio->device_id, spdif_allowed);