audiodecoder: Handle allocation query

This commit is contained in:
Sebastian Dröge 2012-07-23 11:42:22 +02:00
parent 5d830cfbd8
commit 7b06c34868

View file

@ -2005,6 +2005,14 @@ gst_audio_decoder_sink_query (GstPad * pad, GstObject * parent,
gst_query_set_convert (query, src_fmt, src_val, dest_fmt, dest_val);
break;
}
case GST_QUERY_ALLOCATION:
{
GstAudioDecoderClass *klass = GST_AUDIO_DECODER_GET_CLASS (dec);
if (klass->propose_allocation)
res = klass->propose_allocation (dec, query);
break;
}
case GST_QUERY_SEEKING:
{
GstFormat format;