mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
bluez: Fix avdtpsrc getcaps() function
This is now a proper subset of the template caps.
This commit is contained in:
parent
50b3040544
commit
49fa7ac6b2
1 changed files with 4 additions and 0 deletions
|
@ -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");
|
||||
|
|
Loading…
Reference in a new issue