From b56ab4b3cfc0aaa5168171caed2558cda8024b09 Mon Sep 17 00:00:00 2001 From: Wim Taymans Date: Mon, 30 Apr 2012 12:28:42 +0200 Subject: [PATCH] tsdemux: reset the state of the stream when flushing We need to reset the stream on a flush or else old packets could be added to the list and leak. --- gst/mpegtsdemux/tsdemux.c | 1 + 1 file changed, 1 insertion(+) diff --git a/gst/mpegtsdemux/tsdemux.c b/gst/mpegtsdemux/tsdemux.c index f7be0d9..a4336dc 100644 --- a/gst/mpegtsdemux/tsdemux.c +++ b/gst/mpegtsdemux/tsdemux.c @@ -1023,6 +1023,7 @@ gst_ts_demux_stream_flush (TSDemuxStream * stream) stream->currentlist = NULL; } + stream->state = PENDING_PACKET_EMPTY; stream->expected_size = 0; stream->current_size = 0; stream->need_newsegment = TRUE; -- 2.7.4