mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
videomixer2: remove pad event function
We use the one from collectpads
This commit is contained in:
parent
4d73fe793a
commit
9095f455d5
1 changed files with 0 additions and 25 deletions
|
@ -323,29 +323,6 @@ beach:
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
|
||||||
static gboolean
|
|
||||||
gst_videomixer2_pad_sink_event (GstPad * pad, GstObject * parent,
|
|
||||||
GstEvent * event)
|
|
||||||
{
|
|
||||||
gboolean ret = FALSE;
|
|
||||||
|
|
||||||
switch (GST_EVENT_TYPE (event)) {
|
|
||||||
case GST_EVENT_CAPS:
|
|
||||||
{
|
|
||||||
GstCaps *caps;
|
|
||||||
|
|
||||||
gst_event_parse_caps (event, &caps);
|
|
||||||
ret = gst_videomixer2_pad_sink_setcaps (pad, parent, caps);
|
|
||||||
gst_event_unref (event);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
default:
|
|
||||||
ret = gst_pad_event_default (pad, parent, event);
|
|
||||||
break;
|
|
||||||
}
|
|
||||||
return ret;
|
|
||||||
}
|
|
||||||
|
|
||||||
static GstCaps *
|
static GstCaps *
|
||||||
gst_videomixer2_pad_sink_getcaps (GstPad * pad, GstObject * parent,
|
gst_videomixer2_pad_sink_getcaps (GstPad * pad, GstObject * parent,
|
||||||
GstCaps * filter)
|
GstCaps * filter)
|
||||||
|
@ -549,8 +526,6 @@ static void
|
||||||
gst_videomixer2_pad_init (GstVideoMixer2Pad * mixerpad)
|
gst_videomixer2_pad_init (GstVideoMixer2Pad * mixerpad)
|
||||||
{
|
{
|
||||||
/* setup some pad functions */
|
/* setup some pad functions */
|
||||||
gst_pad_set_event_function (GST_PAD (mixerpad),
|
|
||||||
gst_videomixer2_pad_sink_event);
|
|
||||||
gst_pad_set_query_function (GST_PAD (mixerpad),
|
gst_pad_set_query_function (GST_PAD (mixerpad),
|
||||||
gst_videomixer2_pad_sink_query);
|
gst_videomixer2_pad_sink_query);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue