[vlc-devel] [PATCH 4/4] video_output: the reuse of previously decoded picture is unlikely
Steve Lhomme
robux4 at ycbcr.xyz
Thu Jan 21 12:10:00 UTC 2021
It only happens on the first frame or after a flush. For all other frames this
code will not match.
---
src/video_output/video_output.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index d14e5cddaf5..af1edea519d 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1075,7 +1075,7 @@ static picture_t *ThreadDisplayPreparePicture(vout_thread_sys_t *vout, bool reus
while (!picture) {
picture_t *decoded;
- if (reuse_decoded && sys->displayed.decoded) {
+ if (unlikely(reuse_decoded && sys->displayed.decoded)) {
decoded = picture_Hold(sys->displayed.decoded);
} else {
decoded = picture_fifo_Pop(sys->decoder_fifo);
--
2.29.2
More information about the vlc-devel
mailing list