tsdemux: reset iterator to NULL after it's free

Fixes possible invalid memory access in gst_ts_demux_stream_flush
This commit is contained in:
Alessandro Decina 2012-04-04 07:24:28 +02:00
parent 6800d0c4e0
commit 3b525d1147

View file

@ -1547,6 +1547,7 @@ beach:
memset (stream->pendingbuffers, 0, TS_MAX_PENDING_BUFFERS); memset (stream->pendingbuffers, 0, TS_MAX_PENDING_BUFFERS);
stream->nbpending = 0; stream->nbpending = 0;
stream->current = NULL; stream->current = NULL;
stream->currentit = NULL;
stream->expected_size = 0; stream->expected_size = 0;
stream->current_size = 0; stream->current_size = 0;