• Julian Scheel's avatar
    mmal/codec: Flush the decoder when running out of buffers · d8ad9f35
    Julian Scheel authored
    Normally the decoder should not run out of input buffers as it is fed with
    packetized data and for each input block a picture shall be generated. In rare
    situations the decoder seems to fail internally and does stop generating
    pictures. In this case the input buffers are not released either. If this
    happens the whole pipeline stalls and vlc buffers input data until system runs
    out of memory. To avoid this error case force the decoder to flush its port
    if it runs out of input buffers. This causes a short image distortion but the
    decoder won't block anymore.
    Signed-off-by: default avatarJulian Scheel <julian@jusst.de>
    Signed-off-by: default avatarRémi Denis-Courmont <remi@remlab.net>
    d8ad9f35
codec.c 22.5 KB