diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-11-01 19:45:00 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-11-01 19:45:00 +0000 |
commit | 96d6078ada20a76f885ea04893aac5f0ca5fe48d (patch) | |
tree | 5a555aaae3228f5c5faf2497b71227557aecc650 /audio/gstsbcparse.c | |
parent | a4bc7122fb5c7e4545cf8055cf71d1e88515998f (diff) |
Fix sbc negotiation and improves buffer handling by using GstAdapter.
Diffstat (limited to 'audio/gstsbcparse.c')
-rw-r--r-- | audio/gstsbcparse.c | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/audio/gstsbcparse.c b/audio/gstsbcparse.c index 42ae9550..185cda03 100644 --- a/audio/gstsbcparse.c +++ b/audio/gstsbcparse.c @@ -78,8 +78,6 @@ static GstCaps* sbc_parse_select_caps(GstSbcParse *parse, GstCaps *caps) value = gst_structure_get_value(structure, "rate"); if (GST_VALUE_HOLDS_LIST(value)) { temp = gst_sbc_select_rate_from_list(value); - } else if (GST_VALUE_HOLDS_INT_RANGE(value)) { - temp = gst_sbc_select_rate_from_range(value); } else { temp = g_value_get_int(value); } @@ -92,9 +90,7 @@ static GstCaps* sbc_parse_select_caps(GstSbcParse *parse, GstCaps *caps) goto error; } else { value = gst_structure_get_value(structure, "channels"); - if (GST_VALUE_HOLDS_LIST(value)) { - temp = gst_sbc_select_channels_from_list(value); - } else if (GST_VALUE_HOLDS_INT_RANGE(value)) { + if (GST_VALUE_HOLDS_INT_RANGE(value)) { temp = gst_sbc_select_channels_from_range(value); } else { temp = g_value_get_int(value); @@ -110,8 +106,6 @@ static GstCaps* sbc_parse_select_caps(GstSbcParse *parse, GstCaps *caps) value = gst_structure_get_value(structure, "blocks"); if (GST_VALUE_HOLDS_LIST(value)) { temp = gst_sbc_select_blocks_from_list(value); - } else if (GST_VALUE_HOLDS_INT_RANGE(value)) { - temp = gst_sbc_select_blocks_from_range(value); } else { temp = g_value_get_int(value); } @@ -126,8 +120,6 @@ static GstCaps* sbc_parse_select_caps(GstSbcParse *parse, GstCaps *caps) value = gst_structure_get_value(structure, "subbands"); if (GST_VALUE_HOLDS_LIST(value)) { temp = gst_sbc_select_subbands_from_list(value); - } else if (GST_VALUE_HOLDS_INT_RANGE(value)) { - temp = gst_sbc_select_subbands_from_range(value); } else { temp = g_value_get_int(value); } |