mpegtsmux: avoid leaking force keyunit event when going to NULL

Do not set to NULL before unreffing the event or it will leak
This commit is contained in:
Thiago Santos 2015-02-03 17:05:06 -03:00
parent 77bafb4dbc
commit e9c1d64895

View file

@ -374,7 +374,6 @@ mpegtsmux_reset (MpegTsMux * mux, gboolean alloc)
mux->is_delta = TRUE;
mux->streamheader_sent = FALSE;
mux->force_key_unit_event = NULL;
mux->pending_key_unit_ts = GST_CLOCK_TIME_NONE;
#if 0
mux->spn_count = 0;