From 4efdbc97a54acb4f60c58308ff9d5f0619b1791c Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Thu, 6 Sep 2012 13:23:46 +0200 Subject: [PATCH] deinterlace: use default event functions instead of blindly forwarding unknown events. --- gst/deinterlace/gstdeinterlace.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/gst/deinterlace/gstdeinterlace.c b/gst/deinterlace/gstdeinterlace.c index 803556d129..a3bf2a6a3a 100644 --- a/gst/deinterlace/gstdeinterlace.c +++ b/gst/deinterlace/gstdeinterlace.c @@ -2464,9 +2464,6 @@ gst_deinterlace_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) case GST_EVENT_EOS: self->have_eos = TRUE; gst_deinterlace_reset_history (self, FALSE); - - /* fall through */ - default: res = gst_pad_push_event (self->srcpad, event); break; @@ -2479,6 +2476,10 @@ gst_deinterlace_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) res = gst_pad_push_event (self->srcpad, event); gst_deinterlace_reset_history (self, TRUE); break; + + default: + res = gst_pad_event_default (pad, parent, event); + break; } return res; @@ -2565,7 +2566,7 @@ gst_deinterlace_src_event (GstPad * pad, GstObject * parent, GstEvent * event) } /* fall through */ default: - res = gst_pad_push_event (self->sinkpad, event); + res = gst_pad_event_default (pad, parent, event); break; } -- 2.34.1