bluez: update SBC caps for renamed fields

mode -> channel-mode
allocation -> allocation-method
This commit is contained in:
Tim-Philipp Müller 2013-01-20 17:17:27 +00:00
parent feb113e87a
commit ee6d8a7e62
2 changed files with 5 additions and 5 deletions

View file

@ -59,10 +59,10 @@ static GstStaticPadTemplate gst_a2dp_sink_factory =
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\" }, "
"allocation-method = (string) { snr, loudness }, "
"bitpool = (int) [ 2, " TEMPLATE_MAX_BITPOOL_STR " ]; " "audio/mpeg"));
static gboolean gst_a2dp_sink_handle_event (GstPad * pad,

View file

@ -267,7 +267,7 @@ gst_avdtp_sink_parse_sbc_raw (GstAvdtpSink * self)
}
g_value_unset (value);
if (list) {
gst_structure_set_value (structure, "mode", list);
gst_structure_set_value (structure, "channel-mode", list);
g_free (list);
list = NULL;
}
@ -329,7 +329,7 @@ gst_avdtp_sink_parse_sbc_raw (GstAvdtpSink * self)
}
g_value_unset (value);
if (list) {
gst_structure_set_value (structure, "allocation", list);
gst_structure_set_value (structure, "allocation-method", list);
g_free (list);
list = NULL;
}
@ -1121,5 +1121,5 @@ gst_avdtp_sink_set_channel_mode (GstAvdtpSink * self, const gchar * mode)
self->channel_mode = new_mode;
if (self->channel_mode == -1)
GST_WARNING_OBJECT (self, "Received invalid channel " "mode: %s", mode);
GST_WARNING_OBJECT (self, "Received invalid channel mode: %s", mode);
}