decodebin3: fix eos event leak
authorRoland Jon <rlandjon@gmail.com>
Tue, 24 Jul 2018 10:40:36 +0000 (18:40 +0800)
committerTim-Philipp Müller <tim@centricular.com>
Thu, 18 Oct 2018 12:03:31 +0000 (13:03 +0100)
https://bugzilla.gnome.org/show_bug.cgi?id=796860

gst/playback/gstdecodebin3.c

index 1a85026..cfe061a 100644 (file)
@@ -1825,6 +1825,8 @@ multiqueue_src_probe (GstPad * pad, GstPadProbeInfo * info,
           } else if (!was_drained) {
             check_all_slot_for_eos (dbin);
           }
+          if (ret == GST_PAD_PROBE_HANDLED)
+            gst_event_unref (ev);
           SELECTION_UNLOCK (dbin);
           break;
         }