]> git.sesse.net Git - vlc/commit
mmal/codec: Explicitly count buffers in transit
authorJulian Scheel <julian@jusst.de>
Mon, 19 Jan 2015 10:30:26 +0000 (11:30 +0100)
committerRémi Denis-Courmont <remi@remlab.net>
Tue, 20 Jan 2015 06:06:32 +0000 (08:06 +0200)
commit152c5ba41d65e0d0d1096b98edcbf75b53cf8715
tree47e1b01c353aaaa4464176955e590d75e0dbd13c
parent32249e3dba2e06d485ec3400785014683a19c9ec
mmal/codec: Explicitly count buffers in transit

The previous approach of calculating the buffers in transit was broken because
it assumed that buffers which were currently processed in the video output
stage are in transit. In fact only those buffers which are currently handed
off to the mmal output port of the video_decode plugin are to be counted as
buffers in transit. Fixing this avoids some framedrops due to missing/late
buffers.

Signed-off-by: Julian Scheel <julian@jusst.de>
Signed-off-by: Rémi Denis-Courmont <remi@remlab.net>
modules/hw/mmal/codec.c