diff options
author | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-10-29 15:02:26 +0000 |
---|---|---|
committer | Luiz Augusto von Dentz <luiz.dentz@openbossa.org> | 2007-10-29 15:02:26 +0000 |
commit | ea39736b353ba409d03e8f86b7ca6ca1e746fecd (patch) | |
tree | 09f978819246b2c25cb0a1bb53da66cafce5df61 /audio/gsta2dpsink.c | |
parent | 973d90d520edc392c458c556d9f1a3e242a1f080 (diff) |
Add bitpool capability.
Diffstat (limited to 'audio/gsta2dpsink.c')
-rw-r--r-- | audio/gsta2dpsink.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/audio/gsta2dpsink.c b/audio/gsta2dpsink.c index 0ed39a66..be81efe8 100644 --- a/audio/gsta2dpsink.c +++ b/audio/gsta2dpsink.c @@ -112,7 +112,8 @@ static GstStaticPadTemplate a2dp_sink_factory = "mode = (string) { mono, dual, stereo, joint }, " "blocks = (int) { 4, 8, 12, 16 }, " "subbands = (int) { 4, 8 }, " - "allocation = (string) { snr, loudness }; " + "allocation = (string) { snr, loudness }," + "bitpool = (int) [ 2, 64 ]; " "audio/mpeg, " "mpegversion = (int) 1, " "layer = (int) [ 1, 3 ], " @@ -335,7 +336,9 @@ static gboolean gst_a2dp_sink_init_pkt_conf(GstA2dpSink *sink, value = gst_structure_get_value(structure, "blocks"); sbc->blocks = g_value_get_int(value); - sbc->bitpool = 32; + + value = gst_structure_get_value(structure, "bitpool"); + sbc->bitpool = g_value_get_int(value); pkt->length = sizeof(*cfg) + sizeof(*sbc); pkt->type = PKT_TYPE_CFG_REQ; |