mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-20 15:27:07 +00:00
bluez: Fix crash on gstreamer plugin if device doesn't support sbc
This commit is contained in:
parent
31fe375174
commit
651e1be7ef
1 changed files with 3 additions and 0 deletions
|
@ -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);
|
||||
|
||||
|
|
Loading…
Reference in a new issue