projects
/
platform
/
upstream
/
gstreamer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
50b3040
)
bluez: Fix avdtpsrc getcaps() function
author
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Thu, 11 Oct 2012 03:27:01 +0000
(08:57 +0530)
committer
Arun Raghavan
<arun.raghavan@collabora.co.uk>
Thu, 28 Mar 2013 16:50:25 +0000
(16:50 +0000)
This is now a proper subset of the template caps.
sys/bluez/gstavdtpsrc.c
patch
|
blob
|
history
diff --git
a/sys/bluez/gstavdtpsrc.c
b/sys/bluez/gstavdtpsrc.c
index
e6ed36c
..
955af28
100644
(file)
--- a/
sys/bluez/gstavdtpsrc.c
+++ b/
sys/bluez/gstavdtpsrc.c
@@
-180,7
+180,11
@@
gst_avdtp_src_getcaps (GstPad * pad)
format = gst_structure_get_name (structure);
if (g_str_equal (format, "audio/x-sbc")) {
+ /* FIXME: we can return a fixed payload type once we
+ * are in PLAYING */
ret = gst_caps_new_simple ("application/x-rtp",
+ "media", G_TYPE_STRING, "audio",
+ "payload", GST_TYPE_INT_RANGE, 96, 127,
"encoding-name", G_TYPE_STRING, "SBC", NULL);
} else if (g_str_equal (format, "audio/mpeg")) {
GST_ERROR_OBJECT (avdtpsrc, "Only SBC is supported at " "the moment");