diff --git a/gst/isomp4/qtdemux.c b/gst/isomp4/qtdemux.c index 8409123d14..156e5f7cad 100644 --- a/gst/isomp4/qtdemux.c +++ b/gst/isomp4/qtdemux.c @@ -2445,6 +2445,8 @@ qtdemux_parse_moof (GstQTDemux * qtdemux, const guint8 * buffer, guint length, 0, GST_CLOCK_TIME_NONE, gst_util_uint64_scale (decode_time, GST_SECOND, stream->timescale))); + /* ref added when replaced, release the original _new one */ + gst_event_unref (qtdemux->pending_newsegment); } }