mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-26 19:51:11 +00:00
uridecodebin3: Don't leak EOS event
Make sure to unref the EOS event in all code paths when returning GST_PAD_PROBE_HANDLED Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/2784>
This commit is contained in:
parent
6bffbe283a
commit
6e549b2fe5
1 changed files with 3 additions and 0 deletions
|
@ -1152,6 +1152,9 @@ uri_src_probe (GstPad * pad, GstPadProbeInfo * info, GstSourcePad * srcpad)
|
|||
if (peer) {
|
||||
gst_pad_send_event (peer, event);
|
||||
gst_object_unref (peer);
|
||||
} else {
|
||||
/* No peer, just drop it (since we're returning HANDLED below) */
|
||||
gst_event_unref (event);
|
||||
}
|
||||
|
||||
PLAY_ITEMS_LOCK (handler->uridecodebin);
|
||||
|
|
Loading…
Reference in a new issue