diff options
author | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-10-11 08:57:01 +0530 |
---|---|---|
committer | Arun Raghavan <arun.raghavan@collabora.co.uk> | 2012-10-11 09:00:13 +0530 |
commit | 039810d92823aa8293474c78dd7367a1b24e1d1e (patch) | |
tree | 58d8c5c9a30d9e5f743dfadc5328fbfa49a643b6 | |
parent | b68c10c2a2efed1e2d7a00880286354b20697132 (diff) |
audio: Fix avdtpsrc getcaps() function
This is now a proper subset of the template caps.
-rw-r--r-- | audio/gstavdtpsrc.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/audio/gstavdtpsrc.c b/audio/gstavdtpsrc.c index ec070a50..2a5c98b3 100644 --- a/audio/gstavdtpsrc.c +++ b/audio/gstavdtpsrc.c @@ -189,7 +189,11 @@ static GstCaps* 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")) { |