From 8e8ac0504cd6e1543805bdc3998947af550b3376 Mon Sep 17 00:00:00 2001 From: Jan Schmidt Date: Sun, 3 Jan 2016 08:26:23 +1100 Subject: rpicamsrc: basesrc event handlers should not unref Don't unref the passed event when handling events via the GstBaseSrc src pad event handler - basesrc does the unref. That breaks handling of upstream force-key-unit events by unreffing twice. Fixes https://github.com/thaytan/gst-rpicamsrc/issues/43 --- sys/rpicamsrc/gstrpicamsrc.c | 1 - 1 file changed, 1 deletion(-) (limited to 'sys') diff --git a/sys/rpicamsrc/gstrpicamsrc.c b/sys/rpicamsrc/gstrpicamsrc.c index 4e21b87b3..b264ac069 100644 --- a/sys/rpicamsrc/gstrpicamsrc.c +++ b/sys/rpicamsrc/gstrpicamsrc.c @@ -1118,7 +1118,6 @@ gst_rpi_cam_src_event (GstBaseSrc * parent, GstEvent * event) } else { ret = FALSE; } - gst_event_unref (event); } else { ret = GST_BASE_SRC_CLASS (parent_class)->event (parent, event); } -- cgit v1.2.3