mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 20:42:30 +00:00
element-templates: chain query/event functions
Chain up to parent class. This fix should be done to all of the templates.
This commit is contained in:
parent
67f546968c
commit
b45c206647
2 changed files with 25 additions and 3 deletions
|
@ -161,10 +161,16 @@ static gboolean
|
|||
gst_replace_event (GstBaseSrc * src, GstEvent * event)
|
||||
{
|
||||
GstReplace *replace = GST_REPLACE (src);
|
||||
gboolean ret;
|
||||
|
||||
GST_DEBUG_OBJECT (replace, "event");
|
||||
|
||||
return TRUE;
|
||||
switch (GST_EVENT_TYPE (event)) {
|
||||
default:
|
||||
ret = GST_BASE_SRC_CLASS (parent_class)->event (src, event);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static GstFlowReturn
|
||||
|
@ -192,10 +198,16 @@ static gboolean
|
|||
gst_replace_query (GstBaseSrc * src, GstQuery * query)
|
||||
{
|
||||
GstReplace *replace = GST_REPLACE (src);
|
||||
gboolean ret;
|
||||
|
||||
GST_DEBUG_OBJECT (replace, "query");
|
||||
|
||||
return TRUE;
|
||||
switch (GST_QUERY_TYPE (query)) {
|
||||
default:
|
||||
ret = GST_BASE_SRC_CLASS (parent_class)->query (src, query);
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
static gboolean
|
||||
|
|
|
@ -123,7 +123,17 @@ gst_replace_send_event (GstElement * element, GstEvent * event)
|
|||
static gboolean
|
||||
gst_replace_query (GstElement * element, GstQuery * query)
|
||||
{
|
||||
GstReplace *replace = GST_REPLACE (element);
|
||||
gboolean ret;
|
||||
|
||||
return FALSE;
|
||||
GST_DEBUG_OBJECT (replace, "query");
|
||||
|
||||
switch (GST_QUERY_TYPE (query)) {
|
||||
default:
|
||||
ret = GST_ELEMENT_CLASS (parent_class)->query (element, query);
|
||||
break;
|
||||
}
|
||||
|
||||
return ret;
|
||||
}
|
||||
% end
|
||||
|
|
Loading…
Reference in a new issue