diff --git a/gst-libs/gst/audio/gstaudiodecoder.c b/gst-libs/gst/audio/gstaudiodecoder.c index 0b283d3f8fe3b9434381fd0179d07f07ad4e3d98..e831be343449ac13d62deeb558c058e3cd38ebd1 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.c +++ b/gst-libs/gst/audio/gstaudiodecoder.c @@ -383,8 +383,6 @@ static gboolean gst_audio_decoder_negotiate_default (GstAudioDecoder * dec); static gboolean gst_audio_decoder_negotiate_unlocked (GstAudioDecoder * dec); static gboolean gst_audio_decoder_handle_gap (GstAudioDecoder * dec, GstEvent * event); -static gboolean gst_audio_decoder_sink_query_default (GstAudioDecoder * dec, - GstQuery * query); static gboolean gst_audio_decoder_src_query_default (GstAudioDecoder * dec, GstQuery * query); @@ -2634,7 +2632,19 @@ gst_audio_decoder_sink_getcaps (GstAudioDecoder * decoder, GstCaps * filter) return caps; } -static gboolean +/** + * gst_audio_decoder_sink_query_default: + * @decoder: a #GstAudioDecoder + * @query: (transfer none): a #GstQuery + * + * Calls the default query handler for #GstAudioDecoder. It is useful + * when a subclass only want to handle a particular type of query and + * wants to use the default handler for others. + * + * Returns: a boolean, representing if the query was handled. + * Since: 1.6 + */ +gboolean gst_audio_decoder_sink_query_default (GstAudioDecoder * dec, GstQuery * query) { GstPad *pad = GST_AUDIO_DECODER_SINK_PAD (dec); diff --git a/gst-libs/gst/audio/gstaudiodecoder.h b/gst-libs/gst/audio/gstaudiodecoder.h index 8140727a38c844168b8107fb6477ba2426eb93f7..3e9fa0332b69a551ec2f7a201795f37703ec4e2d 100644 --- a/gst-libs/gst/audio/gstaudiodecoder.h +++ b/gst-libs/gst/audio/gstaudiodecoder.h @@ -394,6 +394,9 @@ void gst_audio_decoder_get_allocator (GstAudioDecoder * dec, void gst_audio_decoder_merge_tags (GstAudioDecoder * dec, const GstTagList * tags, GstTagMergeMode mode); +gboolean gst_audio_decoder_sink_query_default (GstAudioDecoder * dec, + GstQuery * query); + G_END_DECLS #endif /* _GST_AUDIO_DECODER_H_ */ diff --git a/win32/common/libgstaudio.def b/win32/common/libgstaudio.def index d481b92e5030b72281121761ab6ef3c79c783b48..39e2742fc09926a8cdb4ce03b71b768b078ef84a 100644 --- a/win32/common/libgstaudio.def +++ b/win32/common/libgstaudio.def @@ -67,6 +67,7 @@ EXPORTS gst_audio_decoder_set_plc gst_audio_decoder_set_plc_aware gst_audio_decoder_set_tolerance + gst_audio_decoder_sink_query_default gst_audio_downmix_meta_api_get_type gst_audio_downmix_meta_get_info gst_audio_encoder_allocate_output_buffer