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
This commit is contained in:
Jan Schmidt 2016-01-03 08:26:23 +11:00 committed by Tim-Philipp Müller
parent 8fa4acacc0
commit 8e8ac0504c

View file

@ -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);
}