]> git.sesse.net Git - vlc/commit
mmal/codec: Flush the decoder when running out of buffers
authorJulian Scheel <julian@jusst.de>
Mon, 19 Jan 2015 10:30:24 +0000 (11:30 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 20 Jan 2015 06:06:32 +0000 (08:06 +0200)
commitd8ad9f353e00008694bd2d41ba703568119b582e
tree4029c147c59be2a3eb840cee9f7865d6e77243c0
parentfc5204e32cf1d761220749eba69f23559ec968f4
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>
modules/hw/mmal/codec.c