[vlc-devel] [PATCH 1/5] video_output: move test that is only possible in frame by frame
Steve Lhomme
robux4 at ycbcr.xyz
Thu Jan 21 12:13:11 UTC 2021
display.current can only be set to NULL in frame by frame mode (which is wrong).
---
src/video_output/video_output.c | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index af1edea519d..f7943264527 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1504,6 +1504,9 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
sys->displayed.current = sys->displayed.next;
sys->displayed.next = NULL;
+ if (!sys->displayed.current)
+ return VLC_EGENERIC;
+
render_now = true;
}
else
@@ -1572,9 +1575,6 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
}
}
- if (!sys->displayed.current)
- return VLC_EGENERIC;
-
/* display the picture immediately */
render_now |= sys->displayed.current->b_force;
int ret = ThreadDisplayRenderPicture(vout, render_now);
--
2.29.2
More information about the vlc-devel
mailing list