mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 12:11:13 +00:00
element: remove more query_types
This commit is contained in:
parent
464f55bc5b
commit
6ed869c9f4
3 changed files with 0 additions and 41 deletions
|
@ -596,7 +596,6 @@ struct _GstElement
|
|||
* @get_index: set a #GstIndex on the element
|
||||
* @set_index: get the #GstIndex of an element
|
||||
* @send_event: send a #GstEvent to the element
|
||||
* @get_query_types: get the supported #GstQueryType of this element
|
||||
* @query: perform a #GstQuery on the element
|
||||
* @state_changed: called immediately after a new state was set.
|
||||
*
|
||||
|
@ -655,7 +654,6 @@ struct _GstElementClass
|
|||
/* query functions */
|
||||
gboolean (*send_event) (GstElement *element, GstEvent *event);
|
||||
|
||||
const GstQueryType* (*get_query_types) (GstElement *element);
|
||||
gboolean (*query) (GstElement *element, GstQuery *query);
|
||||
|
||||
/*< private >*/
|
||||
|
|
|
@ -368,7 +368,6 @@ static void gst_base_sink_get_property (GObject * object, guint prop_id,
|
|||
static gboolean gst_base_sink_send_event (GstElement * element,
|
||||
GstEvent * event);
|
||||
static gboolean default_element_query (GstElement * element, GstQuery * query);
|
||||
static const GstQueryType *gst_base_sink_get_query_types (GstElement * element);
|
||||
|
||||
static GstCaps *gst_base_sink_get_caps (GstBaseSink * sink, GstCaps * caps);
|
||||
static gboolean gst_base_sink_set_caps (GstBaseSink * sink, GstCaps * caps);
|
||||
|
@ -543,8 +542,6 @@ gst_base_sink_class_init (GstBaseSinkClass * klass)
|
|||
GST_DEBUG_FUNCPTR (gst_base_sink_change_state);
|
||||
gstelement_class->send_event = GST_DEBUG_FUNCPTR (gst_base_sink_send_event);
|
||||
gstelement_class->query = GST_DEBUG_FUNCPTR (default_element_query);
|
||||
gstelement_class->get_query_types =
|
||||
GST_DEBUG_FUNCPTR (gst_base_sink_get_query_types);
|
||||
|
||||
klass->get_caps = GST_DEBUG_FUNCPTR (gst_base_sink_get_caps);
|
||||
klass->set_caps = GST_DEBUG_FUNCPTR (gst_base_sink_set_caps);
|
||||
|
@ -4710,20 +4707,6 @@ gst_base_sink_get_duration (GstBaseSink * basesink, GstFormat format,
|
|||
return res;
|
||||
}
|
||||
|
||||
static const GstQueryType *
|
||||
gst_base_sink_get_query_types (GstElement * element)
|
||||
{
|
||||
static const GstQueryType query_types[] = {
|
||||
GST_QUERY_DURATION,
|
||||
GST_QUERY_POSITION,
|
||||
GST_QUERY_SEGMENT,
|
||||
GST_QUERY_LATENCY,
|
||||
0
|
||||
};
|
||||
|
||||
return query_types;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
default_element_query (GstElement * element, GstQuery * query)
|
||||
{
|
||||
|
|
|
@ -292,7 +292,6 @@ static void gst_base_src_get_property (GObject * object, guint prop_id,
|
|||
static gboolean gst_base_src_event_handler (GstPad * pad, GstEvent * event);
|
||||
static gboolean gst_base_src_send_event (GstElement * elem, GstEvent * event);
|
||||
static gboolean gst_base_src_default_event (GstBaseSrc * src, GstEvent * event);
|
||||
static const GstQueryType *gst_base_src_get_query_types (GstElement * element);
|
||||
|
||||
static gboolean gst_base_src_query (GstPad * pad, GstQuery * query);
|
||||
|
||||
|
@ -367,8 +366,6 @@ gst_base_src_class_init (GstBaseSrcClass * klass)
|
|||
gstelement_class->change_state =
|
||||
GST_DEBUG_FUNCPTR (gst_base_src_change_state);
|
||||
gstelement_class->send_event = GST_DEBUG_FUNCPTR (gst_base_src_send_event);
|
||||
gstelement_class->get_query_types =
|
||||
GST_DEBUG_FUNCPTR (gst_base_src_get_query_types);
|
||||
|
||||
klass->negotiate = GST_DEBUG_FUNCPTR (gst_base_src_default_negotiate);
|
||||
klass->event = GST_DEBUG_FUNCPTR (gst_base_src_default_event);
|
||||
|
@ -1583,25 +1580,6 @@ prepare_failed:
|
|||
return FALSE;
|
||||
}
|
||||
|
||||
static const GstQueryType *
|
||||
gst_base_src_get_query_types (GstElement * element)
|
||||
{
|
||||
static const GstQueryType query_types[] = {
|
||||
GST_QUERY_DURATION,
|
||||
GST_QUERY_POSITION,
|
||||
GST_QUERY_SEEKING,
|
||||
GST_QUERY_SEGMENT,
|
||||
GST_QUERY_FORMATS,
|
||||
GST_QUERY_LATENCY,
|
||||
GST_QUERY_JITTER,
|
||||
GST_QUERY_RATE,
|
||||
GST_QUERY_CONVERT,
|
||||
0
|
||||
};
|
||||
|
||||
return query_types;
|
||||
}
|
||||
|
||||
/* all events send to this element directly. This is mainly done from the
|
||||
* application.
|
||||
*/
|
||||
|
|
Loading…
Reference in a new issue