tsdemux: reset iterator to NULL after it's free
authorAlessandro Decina <alessandro.d@gmail.com>
Wed, 4 Apr 2012 05:24:28 +0000 (07:24 +0200)
committerAlessandro Decina <alessandro.d@gmail.com>
Wed, 4 Apr 2012 05:24:28 +0000 (07:24 +0200)
Fixes possible invalid memory access in gst_ts_demux_stream_flush

gst/mpegtsdemux/tsdemux.c

index 8b97b8e..8f4d78d 100644 (file)
@@ -1547,6 +1547,7 @@ beach:
   memset (stream->pendingbuffers, 0, TS_MAX_PENDING_BUFFERS);
   stream->nbpending = 0;
   stream->current = NULL;
+  stream->currentit = NULL;
   stream->expected_size = 0;
   stream->current_size = 0;