mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-20 13:06:23 +00:00
bluez: audio: Add SBC NULL check for GST AVDTP signaling
Due to RF condition or headset malfunctioning, gst audio plug-in could not get SBC (mandatory codec) information.
This commit is contained in:
parent
7470380792
commit
6c31678d8b
1 changed files with 5 additions and 0 deletions
|
@ -1113,6 +1113,11 @@ gst_avdtp_sink_update_caps (GstAvdtpSink * self)
|
|||
sbc = (void *) gst_avdtp_find_caps (self, BT_A2DP_SBC_SINK);
|
||||
mpeg = (void *) gst_avdtp_find_caps (self, BT_A2DP_MPEG12_SINK);
|
||||
|
||||
if (!sbc) {
|
||||
GST_ERROR_OBJECT (self, "Failed to find mandatory SBC sink");
|
||||
return FALSE;
|
||||
}
|
||||
|
||||
sbc_structure = gst_avdtp_sink_parse_sbc_caps (self, sbc);
|
||||
mpeg_structure = gst_avdtp_sink_parse_mpeg_caps (self, mpeg);
|
||||
|
||||
|
|
Loading…
Reference in a new issue