mmal/codec: Flush the decoder when running out of buffers
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: Julian Scheel <julian@jusst.de> Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
Showing
Please register or sign in to comment