mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-10 08:22:32 +00:00
decodebin3: Don't lose a ref on EOS event
Make sure not to give away the ref on the final EOS event for which the probe handler is returning GST_PAD_PROBE_REMOVE when pushing the event manually. Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/3146>
This commit is contained in:
parent
05c503ff4a
commit
6e61030ded
1 changed files with 1 additions and 3 deletions
|
@ -1979,10 +1979,8 @@ multiqueue_src_probe (GstPad * pad, GstPadProbeInfo * info,
|
||||||
"last EOS for input, forwarding and removing slot");
|
"last EOS for input, forwarding and removing slot");
|
||||||
peer = gst_pad_get_peer (pad);
|
peer = gst_pad_get_peer (pad);
|
||||||
if (peer) {
|
if (peer) {
|
||||||
gst_pad_send_event (peer, ev);
|
gst_pad_send_event (peer, gst_event_ref (ev));
|
||||||
gst_object_unref (peer);
|
gst_object_unref (peer);
|
||||||
} else {
|
|
||||||
gst_event_unref (ev);
|
|
||||||
}
|
}
|
||||||
SELECTION_LOCK (dbin);
|
SELECTION_LOCK (dbin);
|
||||||
/* FIXME : Shouldn't we try to re-assign the output instead of just
|
/* FIXME : Shouldn't we try to re-assign the output instead of just
|
||||||
|
|
Loading…
Reference in a new issue