Revert "audiodecoder: expose default query handling function"

Apparently I forgot how gobject works, there is no need to expose
it directly as one can call it from the parent_class pointer

This reverts commit 8a64592481.
This commit is contained in:
Thiago Santos 2015-08-15 08:18:59 -03:00
parent c63db0e104
commit d19f347223
3 changed files with 3 additions and 17 deletions

View file

@ -386,6 +386,8 @@ static gboolean gst_audio_decoder_negotiate_default (GstAudioDecoder * dec);
static gboolean gst_audio_decoder_negotiate_unlocked (GstAudioDecoder * dec); static gboolean gst_audio_decoder_negotiate_unlocked (GstAudioDecoder * dec);
static gboolean gst_audio_decoder_handle_gap (GstAudioDecoder * dec, static gboolean gst_audio_decoder_handle_gap (GstAudioDecoder * dec,
GstEvent * event); GstEvent * event);
static gboolean gst_audio_decoder_sink_query_default (GstAudioDecoder * dec,
GstQuery * query);
static gboolean gst_audio_decoder_src_query_default (GstAudioDecoder * dec, static gboolean gst_audio_decoder_src_query_default (GstAudioDecoder * dec,
GstQuery * query); GstQuery * query);
@ -2635,19 +2637,7 @@ gst_audio_decoder_sink_getcaps (GstAudioDecoder * decoder, GstCaps * filter)
return caps; 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) gst_audio_decoder_sink_query_default (GstAudioDecoder * dec, GstQuery * query)
{ {
GstPad *pad = GST_AUDIO_DECODER_SINK_PAD (dec); GstPad *pad = GST_AUDIO_DECODER_SINK_PAD (dec);

View file

@ -394,9 +394,6 @@ void gst_audio_decoder_get_allocator (GstAudioDecoder * dec,
void gst_audio_decoder_merge_tags (GstAudioDecoder * dec, void gst_audio_decoder_merge_tags (GstAudioDecoder * dec,
const GstTagList * tags, GstTagMergeMode mode); const GstTagList * tags, GstTagMergeMode mode);
gboolean gst_audio_decoder_sink_query_default (GstAudioDecoder * dec,
GstQuery * query);
void gst_audio_decoder_set_use_default_pad_acceptcaps (GstAudioDecoder * decoder, void gst_audio_decoder_set_use_default_pad_acceptcaps (GstAudioDecoder * decoder,
gboolean use); gboolean use);

View file

@ -68,7 +68,6 @@ EXPORTS
gst_audio_decoder_set_plc_aware gst_audio_decoder_set_plc_aware
gst_audio_decoder_set_tolerance gst_audio_decoder_set_tolerance
gst_audio_decoder_set_use_default_pad_acceptcaps gst_audio_decoder_set_use_default_pad_acceptcaps
gst_audio_decoder_sink_query_default
gst_audio_downmix_meta_api_get_type gst_audio_downmix_meta_api_get_type
gst_audio_downmix_meta_get_info gst_audio_downmix_meta_get_info
gst_audio_encoder_allocate_output_buffer gst_audio_encoder_allocate_output_buffer