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.
This commit is contained in:
Wim Taymans 2012-04-30 12:28:42 +02:00
parent eaf4d97815
commit b56ab4b3cf

View file

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