[vlc-commits] video_output: the reuse of previously decoded picture is unlikely
Steve Lhomme
git at videolan.org
Fri Jan 29 14:54:22 UTC 2021
vlc | branch: master | Steve Lhomme <robux4 at ycbcr.xyz> | Thu Jan 21 09:11:11 2021 +0100| [fe9013b3d4faed8d1af39dd41e5f9768b786a66a] | committer: Steve Lhomme
video_output: the reuse of previously decoded picture is unlikely
It only happens on the first frame or after a flush. For all other frames this
code will not match.
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=fe9013b3d4faed8d1af39dd41e5f9768b786a66a
---
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 d14e5cddaf..af1edea519 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);
More information about the vlc-commits
mailing list