summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorArun Raghavan <arun.raghavan@collabora.co.uk>2012-10-11 08:57:01 +0530
committerArun Raghavan <arun.raghavan@collabora.co.uk>2013-03-28 16:50:25 +0000
commit49fa7ac6b2ecc94eb062cf3e0a6fdcd269d2494b (patch)
treea3711b45d76adcb8c48539d838b35c0950263a07
parent50b3040544077a6a1c73cf4b7d8e8d5264dc5d41 (diff)
bluez: Fix avdtpsrc getcaps() function
This is now a proper subset of the template caps.
-rw-r--r--sys/bluez/gstavdtpsrc.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/sys/bluez/gstavdtpsrc.c b/sys/bluez/gstavdtpsrc.c
index e6ed36c9d..955af289f 100644
--- 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");