mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
audiodecoder: Handle allocation query
This commit is contained in:
parent
5d830cfbd8
commit
7b06c34868
1 changed files with 8 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue