From 41e1af375145a4c25545402849cd92026fd76ab9 Mon Sep 17 00:00:00 2001 From: =?utf8?q?Sebastian=20Dr=C3=B6ge?= Date: Tue, 14 May 2013 17:29:58 +0200 Subject: [PATCH] rgvolume: Send all events through the proxypads instead of just sending to the target Otherwise the sticky events are missing on the proxypads. --- gst/replaygain/gstrgvolume.c | 6 +----- 1 file changed, 1 insertion(+), 5 deletions(-) diff --git a/gst/replaygain/gstrgvolume.c b/gst/replaygain/gstrgvolume.c index c41684d..05c21e0 100644 --- a/gst/replaygain/gstrgvolume.c +++ b/gst/replaygain/gstrgvolume.c @@ -448,12 +448,10 @@ static gboolean gst_rg_volume_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) { GstRgVolume *self; - GstPad *volume_sink_pad; GstEvent *send_event = event; gboolean res; self = GST_RG_VOLUME (parent); - volume_sink_pad = gst_ghost_pad_get_target (GST_GHOST_PAD (pad)); switch (GST_EVENT_TYPE (event)) { case GST_EVENT_TAG: @@ -477,12 +475,10 @@ gst_rg_volume_sink_event (GstPad * pad, GstObject * parent, GstEvent * event) } if (G_LIKELY (send_event != NULL)) - res = gst_pad_send_event (volume_sink_pad, send_event); + res = gst_pad_event_default (pad, parent, send_event); else res = TRUE; - gst_object_unref (volume_sink_pad); - return res; } -- 2.7.4