diff options
author | Jeremie Knuesel <jeremie.knusel@sensefly.com> | 2014-11-18 12:04:43 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim@centricular.com> | 2018-01-23 23:48:20 +0000 |
commit | 0cf247bfb444973c5c36dde03f17c8192cb60b07 (patch) | |
tree | 57ad6bacde8a90424f3eaa79b2266f97ff74ef04 | |
parent | 9740ed6ca478fcac8884f974dba7bc0f4e1d1898 (diff) |
QGst::Pad: strong ref() the event in sendEvent()
Just as in Element::sendEvent().
https://bugzilla.gnome.org/show_bug.cgi?id=740319
-rw-r--r-- | src/QGst/pad.cpp | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/src/QGst/pad.cpp b/src/QGst/pad.cpp index 5132460..1a07f0a 100644 --- a/src/QGst/pad.cpp +++ b/src/QGst/pad.cpp @@ -111,6 +111,9 @@ bool Pad::query(const QueryPtr & query) bool Pad::sendEvent(const EventPtr &event) { + //Sending an event passes ownership of it, so we need to strong ref() it as we still + //hold a pointer to the object, and will release it when the wrapper is cleared. + gst_event_ref(event); return gst_pad_send_event(object<GstPad>(), event); } |