mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-04-14 03:54:11 +00:00
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:
parent
eaf4d97815
commit
b56ab4b3cf
1 changed files with 1 additions and 0 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue