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:
Tim-Philipp Müller 2013-01-16 10:19:36 +00:00
parent f307c6d491
commit 9455a3aee1

View file

@ -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;