projects
/
platform
/
upstream
/
gst-plugins-bad.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7470380
)
bluez: audio: Add SBC NULL check for GST AVDTP signaling
author
Chan-yeol Park
<chanyeol.park@samsung.com>
Mon, 16 Apr 2012 02:59:59 +0000
(11:59 +0900)
committer
Tim-Philipp Müller
<tim.muller@collabora.co.uk>
Wed, 9 Jan 2013 14:30:13 +0000
(14:30 +0000)
Due to RF condition or headset malfunctioning, gst audio plug-in could
not get SBC (mandatory codec) information.
sys/bluez/gstavdtpsink.c
patch
|
blob
|
history
diff --git
a/sys/bluez/gstavdtpsink.c
b/sys/bluez/gstavdtpsink.c
index
d237979
..
529f96c
100644
(file)
--- a/
sys/bluez/gstavdtpsink.c
+++ b/
sys/bluez/gstavdtpsink.c
@@
-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);