qtdemux: release extra event ref when replacing pending newsegment event

This commit is contained in:
Mark Nauwelaerts 2012-08-28 16:28:13 +02:00
parent d0eed20428
commit 748304ced7

View file

@ -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);
}
}