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:
Chan-yeol Park 2012-04-16 11:59:59 +09:00 committed by Tim-Philipp Müller
parent 7470380792
commit 6c31678d8b

View file

@ -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);