flush
Discards buffered decode state and makes the decoder accept a new seek generation. Call this after clearing old caller-owned queues; doing it first would let an old packet enter a freshly reset decoder. Clears isDrained.
Discards buffered decode state and makes the decoder accept a new seek generation. Call this after clearing old caller-owned queues; doing it first would let an old packet enter a freshly reset decoder. Clears isDrained.
Discards the decoder's internal state.
Required after every seek. Without it the decoder emits frames reconstructed from packets belonging to the position the viewer just left, which looks like a flash of the wrong picture.
Clears isDrained: the decoder is ready for input again, wherever the caller seeks to.
Discards buffered decode state and makes the decoder accept a new seek generation. Call this after clearing old caller-owned queues; doing it first would let an old packet enter a freshly reset decoder. Clears isDrained.