diff options
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; | 
