mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
rtpsbcpay: update some fields in the caps to their new name
and to match the parser. "mode" got renamed to "channel-mode" and "allocation" to "allocation-method".
This commit is contained in:
parent
f307c6d491
commit
9455a3aee1
1 changed files with 4 additions and 3 deletions
|
@ -75,10 +75,11 @@ GST_STATIC_PAD_TEMPLATE ("sink", GST_PAD_SINK, GST_PAD_ALWAYS,
|
|||
GST_STATIC_CAPS ("audio/x-sbc, "
|
||||
"rate = (int) { 16000, 32000, 44100, 48000 }, "
|
||||
"channels = (int) [ 1, 2 ], "
|
||||
"mode = (string) { mono, dual, stereo, joint }, "
|
||||
"channel-mode = (string) { mono, dual, stereo, joint }, "
|
||||
"blocks = (int) { 4, 8, 12, 16 }, "
|
||||
"subbands = (int) { 4, 8 }, "
|
||||
"allocation = (string) { snr, loudness }, " "bitpool = (int) [ 2, 64 ]")
|
||||
"allocation-method = (string) { snr, loudness }, "
|
||||
"bitpool = (int) [ 2, 64 ]")
|
||||
);
|
||||
|
||||
static GstStaticPadTemplate gst_rtp_sbc_pay_src_factory =
|
||||
|
@ -137,7 +138,7 @@ gst_rtp_sbc_pay_set_caps (GstRTPBasePayload * payload, GstCaps * caps)
|
|||
if (!gst_structure_get_int (structure, "subbands", &subbands))
|
||||
return FALSE;
|
||||
|
||||
channel_mode = gst_structure_get_string (structure, "mode");
|
||||
channel_mode = gst_structure_get_string (structure, "channel-mode");
|
||||
if (!channel_mode)
|
||||
return FALSE;
|
||||
|
||||
|
|
Loading…
Reference in a new issue