[vlc-devel] [PATCH 4/7] video_output: also check that the prerendered picture is not late
Steve Lhomme
robux4 at ycbcr.xyz
Tue Oct 20 11:04:35 CEST 2020
The static filter may be slow and the returned picture may be late. If the
filtered picture is dropped we keep looping to find a non NULL filtered picture
or no picture at all.
---
src/video_output/video_output.c | 2 ++
1 file changed, 2 insertions(+)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index beb2bf21e16..96919d320db 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1147,6 +1147,8 @@ static picture_t *ThreadGetPrerenderedLocked(vout_thread_sys_t *vout, bool reuse
sys->displayed.is_interlaced = !decoded->b_progressive;
picture = filter_chain_VideoFilter(sys->filter.chain_static, sys->displayed.decoded);
+ if (DropLate(vout, picture, can_drop_late, paused))
+ picture = NULL;
}
return picture;
--
2.26.2
More information about the vlc-devel
mailing list