From 6a7345c98d9a708986065d2702015f0a0639b892 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Wed, 9 Nov 2011 11:58:03 +0100 Subject: [PATCH] remove query types --- ext/mad/gstmad.c | 17 ----------------- ext/mpeg2dec/gstmpeg2dec.c | 15 --------------- gst/asfdemux/gstasfdemux.c | 16 ---------------- gst/realmedia/rmdemux.c | 16 ---------------- 4 files changed, 64 deletions(-) diff --git a/ext/mad/gstmad.c b/ext/mad/gstmad.c index cfe1250..40b5d5b 100644 --- a/ext/mad/gstmad.c +++ b/ext/mad/gstmad.c @@ -82,8 +82,6 @@ static void gst_mad_get_property (GObject * object, guint prop_id, static gboolean gst_mad_src_event (GstPad * pad, GstEvent * event); -static const GstQueryType *gst_mad_get_query_types (GstPad * pad); - static gboolean gst_mad_src_query (GstPad * pad, GstQuery * query); static gboolean gst_mad_convert_sink (GstPad * pad, GstFormat src_format, gint64 src_value, GstFormat * dest_format, gint64 * dest_value); @@ -241,8 +239,6 @@ gst_mad_init (GstMad * mad) GST_DEBUG_FUNCPTR (gst_mad_src_event)); gst_pad_set_query_function (mad->srcpad, GST_DEBUG_FUNCPTR (gst_mad_src_query)); - gst_pad_set_query_type_function (mad->srcpad, - GST_DEBUG_FUNCPTR (gst_mad_get_query_types)); gst_pad_use_fixed_caps (mad->srcpad); mad->tempbuffer = g_malloc (MAD_BUFFER_MDLEN * 3); @@ -435,19 +431,6 @@ gst_mad_convert_src (GstPad * pad, GstFormat src_format, gint64 src_value, return res; } -static const GstQueryType * -gst_mad_get_query_types (GstPad * pad) -{ - static const GstQueryType gst_mad_src_query_types[] = { - GST_QUERY_POSITION, - GST_QUERY_DURATION, - GST_QUERY_CONVERT, - 0 - }; - - return gst_mad_src_query_types; -} - static gboolean gst_mad_src_query (GstPad * pad, GstQuery * query) { diff --git a/ext/mpeg2dec/gstmpeg2dec.c b/ext/mpeg2dec/gstmpeg2dec.c index 06c167d..ec1315c 100644 --- a/ext/mpeg2dec/gstmpeg2dec.c +++ b/ext/mpeg2dec/gstmpeg2dec.c @@ -85,7 +85,6 @@ static void gst_mpeg2dec_set_index (GstElement * element, GstIndex * index); static GstIndex *gst_mpeg2dec_get_index (GstElement * element); static gboolean gst_mpeg2dec_src_event (GstPad * pad, GstEvent * event); -static const GstQueryType *gst_mpeg2dec_get_src_query_types (GstPad * pad); static gboolean gst_mpeg2dec_src_query (GstPad * pad, GstQuery * query); @@ -174,8 +173,6 @@ gst_mpeg2dec_init (GstMpeg2dec * mpeg2dec) gst_pad_new_from_static_template (&src_template_factory, "src"); gst_pad_set_event_function (mpeg2dec->srcpad, GST_DEBUG_FUNCPTR (gst_mpeg2dec_src_event)); - gst_pad_set_query_type_function (mpeg2dec->srcpad, - GST_DEBUG_FUNCPTR (gst_mpeg2dec_get_src_query_types)); gst_pad_set_query_function (mpeg2dec->srcpad, GST_DEBUG_FUNCPTR (gst_mpeg2dec_src_query)); gst_pad_use_fixed_caps (mpeg2dec->srcpad); @@ -1445,18 +1442,6 @@ gst_mpeg2dec_src_convert (GstPad * pad, GstFormat src_format, gint64 src_value, return res; } -static const GstQueryType * -gst_mpeg2dec_get_src_query_types (GstPad * pad) -{ - static const GstQueryType types[] = { - GST_QUERY_POSITION, - GST_QUERY_DURATION, - 0 - }; - - return types; -} - static gboolean gst_mpeg2dec_src_query (GstPad * pad, GstQuery * query) { diff --git a/gst/asfdemux/gstasfdemux.c b/gst/asfdemux/gstasfdemux.c index ac2f002..de02257 100644 --- a/gst/asfdemux/gstasfdemux.c +++ b/gst/asfdemux/gstasfdemux.c @@ -84,7 +84,6 @@ static gboolean gst_asf_demux_element_send_event (GstElement * element, static gboolean gst_asf_demux_send_event_unlocked (GstASFDemux * demux, GstEvent * event); static gboolean gst_asf_demux_handle_src_query (GstPad * pad, GstQuery * query); -static const GstQueryType *gst_asf_demux_get_src_query_types (GstPad * pad); static GstFlowReturn gst_asf_demux_chain (GstPad * pad, GstBuffer * buf); static gboolean gst_asf_demux_sink_event (GstPad * pad, GstEvent * event); static GstFlowReturn gst_asf_demux_process_object (GstASFDemux * demux, @@ -2129,8 +2128,6 @@ gst_asf_demux_setup_pad (GstASFDemux * demux, GstPad * src_pad, gst_pad_set_event_function (src_pad, GST_DEBUG_FUNCPTR (gst_asf_demux_handle_src_event)); - gst_pad_set_query_type_function (src_pad, - GST_DEBUG_FUNCPTR (gst_asf_demux_get_src_query_types)); gst_pad_set_query_function (src_pad, GST_DEBUG_FUNCPTR (gst_asf_demux_handle_src_query)); @@ -3851,19 +3848,6 @@ gst_asf_demux_send_event_unlocked (GstASFDemux * demux, GstEvent * event) return ret; } -static const GstQueryType * -gst_asf_demux_get_src_query_types (GstPad * pad) -{ - static const GstQueryType types[] = { - GST_QUERY_POSITION, - GST_QUERY_DURATION, - GST_QUERY_SEEKING, - 0 - }; - - return types; -} - static gboolean gst_asf_demux_handle_src_query (GstPad * pad, GstQuery * query) { diff --git a/gst/realmedia/rmdemux.c b/gst/realmedia/rmdemux.c index a883ceb..2432568 100644 --- a/gst/realmedia/rmdemux.c +++ b/gst/realmedia/rmdemux.c @@ -144,7 +144,6 @@ static gboolean gst_rmdemux_sink_activate_pull (GstPad * sinkpad, static gboolean gst_rmdemux_sink_event (GstPad * pad, GstEvent * event); static gboolean gst_rmdemux_src_event (GstPad * pad, GstEvent * event); static void gst_rmdemux_send_event (GstRMDemux * rmdemux, GstEvent * event); -static const GstQueryType *gst_rmdemux_src_query_types (GstPad * pad); static gboolean gst_rmdemux_src_query (GstPad * pad, GstQuery * query); static gboolean gst_rmdemux_perform_seek (GstRMDemux * rmdemux, GstEvent * event); @@ -660,19 +659,6 @@ gst_rmdemux_src_query (GstPad * pad, GstQuery * query) return res; } -static const GstQueryType * -gst_rmdemux_src_query_types (GstPad * pad) -{ - static const GstQueryType query_types[] = { - GST_QUERY_POSITION, - GST_QUERY_DURATION, - GST_QUERY_SEEKING, - 0 - }; - - return query_types; -} - static void gst_rmdemux_reset (GstRMDemux * rmdemux) { @@ -1493,8 +1479,6 @@ gst_rmdemux_add_stream (GstRMDemux * rmdemux, GstRMDemuxStream * stream) gst_pad_set_caps (stream->pad, stream_caps); gst_pad_set_event_function (stream->pad, GST_DEBUG_FUNCPTR (gst_rmdemux_src_event)); - gst_pad_set_query_type_function (stream->pad, - GST_DEBUG_FUNCPTR (gst_rmdemux_src_query_types)); gst_pad_set_query_function (stream->pad, GST_DEBUG_FUNCPTR (gst_rmdemux_src_query)); -- 2.7.4