diff options
author | Jan Schmidt <thaytan@noraisin.net> | 2016-01-03 00:26:23 +0300 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2020-07-10 18:45:29 +0300 |
commit | 8e8ac0504cd6e1543805bdc3998947af550b3376 (patch) | |
tree | 5d8aa223c54472e74035d7856ce981234090da46 | |
parent | 8fa4acacc0a7989a114b18edf79a2447bd58bd5c (diff) |
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
-rw-r--r-- | sys/rpicamsrc/gstrpicamsrc.c | 1 |
1 files changed, 0 insertions, 1 deletions
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); } |