From 7b06c34868ba7d063889d5e340753e81922533b4 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Mon, 23 Jul 2012 11:42:22 +0200 Subject: [PATCH] audiodecoder: Handle allocation query --- gst-libs/gst/audio/gstaudiodecoder.c | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index e5bc1f1..1dec15a 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -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; -- 2.7.4