summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorLuiz Augusto von Dentz <luiz.dentz-von@nokia.com>2010-09-13 15:40:11 +0300
committerTim-Philipp Müller <tim.muller@collabora.co.uk>2013-01-09 14:30:12 +0000
commit651e1be7ef5e4bdb8d19b431b104e349f0b70199 (patch)
treea17ed319e01133451848aee672523df0d307c496 /sys
parent31fe37517407436fda08a6da81c1182a6af41a9c (diff)
bluez: Fix crash on gstreamer plugin if device doesn't support sbc
Diffstat (limited to 'sys')
-rw-r--r--sys/bluez/gstavdtpsink.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/sys/bluez/gstavdtpsink.c b/sys/bluez/gstavdtpsink.c
index c2e0b8fc9..635248397 100644
--- a/sys/bluez/gstavdtpsink.c
+++ b/sys/bluez/gstavdtpsink.c
@@ -442,6 +442,9 @@ gst_avdtp_sink_parse_sbc_caps (GstAvdtpSink * self, sbc_capabilities_t * sbc)
GValue *list;
gboolean mono, stereo;
+ if (sbc == NULL)
+ return NULL;
+
structure = gst_structure_empty_new ("audio/x-sbc");
value = g_value_init (g_new0 (GValue, 1), G_TYPE_STRING);