From: Mark Nauwelaerts Date: Tue, 28 Aug 2012 14:28:13 +0000 (+0200) Subject: qtdemux: release extra event ref when replacing pending newsegment event X-Git-Tag: 1.19.3~509^2~6749 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=748304ced734adfbe122f64fbb95ad69ff0806b7;p=platform%2Fupstream%2Fgstreamer.git qtdemux: release extra event ref when replacing pending newsegment event --- 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); } }