From c55cc1ff39cd712507fb2564eb53a6530892ac42 Mon Sep 17 00:00:00 2001 From: Stefan Kost Date: Wed, 20 Aug 2008 07:03:40 +0000 Subject: [PATCH] plugins/elements/: Call super::event() when not handling it. Fixes #544855. Original commit message from CVS: reviewed by: Wim Taymans * plugins/elements/gstfakesink.c: * plugins/elements/gstfakesrc.c: Call super::event() when not handling it. Fixes #544855. --- ChangeLog | 8 ++++++++ plugins/elements/gstfakesink.c | 6 +++++- plugins/elements/gstfakesrc.c | 3 +-- 3 files changed, 14 insertions(+), 3 deletions(-) diff --git a/ChangeLog b/ChangeLog index 0287fe4..ce885a0 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,11 @@ +2008-08-20 Stefan Kost + + reviewed by: Wim Taymans + + * plugins/elements/gstfakesink.c: + * plugins/elements/gstfakesrc.c: + Call super::event() when not handling it. Fixes #544855. + 2008-08-19 Michael Smith Patch by: Alessandro Decina diff --git a/plugins/elements/gstfakesink.c b/plugins/elements/gstfakesink.c index ba8402a..fbe4e4b 100644 --- a/plugins/elements/gstfakesink.c +++ b/plugins/elements/gstfakesink.c @@ -370,7 +370,11 @@ gst_fake_sink_event (GstBaseSink * bsink, GstEvent * event) g_object_notify (G_OBJECT (sink), "last_message"); } - return TRUE; + if (GST_BASE_SINK_CLASS (parent_class)->event) { + return GST_BASE_SINK_CLASS (parent_class)->event (bsink, event); + } else { + return TRUE; + } } static GstFlowReturn diff --git a/plugins/elements/gstfakesrc.c b/plugins/elements/gstfakesrc.c index 3dd94995..71c22a7 100644 --- a/plugins/elements/gstfakesrc.c +++ b/plugins/elements/gstfakesrc.c @@ -449,8 +449,7 @@ gst_fake_src_event_handler (GstBaseSrc * basesrc, GstEvent * event) g_object_notify (G_OBJECT (src), "last_message"); } - - return TRUE; + return GST_BASE_SRC_CLASS (parent_class)->event (basesrc, event); } static void -- 2.7.4