mmal/codec: Implement full flush

Multimedia / VLC - Julian Scheel [jusst.de] - 5 June 2015 08:39 UTC

To be able to handle seeking properly we need to do a full decoder flush on a discontinuity. As flushing the in- and output ports alone would not cause the codecs internal state to be reset we have to disable the ports, reconfigure and reenable. To ensure the flushing is synchronous the input buffers in transit are now tracked as well.

2d8c51b mmal/codec: Implement full flush
modules/hw/mmal/codec.c | 90 ++++++++++++++++++++++++++++++++++++++---------
1 file changed, 74 insertions(+), 16 deletions(-)

Upstream: git.videolan.org


  • Share