]> git.sesse.net Git - vlc/commit
omxil: Dequeue output frames even if there's no picture to write them into
authorMartin Storsjö <martin@martin.st>
Sun, 8 Apr 2012 20:17:21 +0000 (23:17 +0300)
committerJean-Baptiste Kempf <jb@videolan.org>
Tue, 10 Apr 2012 13:13:55 +0000 (15:13 +0200)
commita7d96e44322e71e54d81c5ec3f029d4bd579ec93
tree6b053f12166cdc364a66a2927e6def4cf3db2be0
parent79bb067aed6420edad6d15eac682d4d810d1a5fb
omxil: Dequeue output frames even if there's no picture to write them into

Make sure we always remove all output frames from the output
frame queue, even if there's no picture.

This fixes (for most practical cases at least) the issue where
the app could hang repeating "can't get output picture" after
stopping playback with omxil video decoding.

In that case, the vout didn't return any picture to write the
decoded frames into, causing the omxil codec to run out of output
buffers, blocking, and thus running out of input buffers, blocking
the decoder thread while waiting for a free input buffer.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
modules/codec/omxil/omxil.c