[vlc-devel] [PATCH] video_output: only set the deadline in non-frame by frame mode
Steve Lhomme
robux4 at ycbcr.xyz
Fri Jan 29 14:55:14 UTC 2021
There is no deadline in frame by frame mode.
---
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 1f5ea7672ee..69597ca087e 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1471,9 +1471,6 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
}
vlc_mutex_unlock(&sys->filter.lock);
- if (deadline)
- *deadline = VLC_TICK_INVALID;
-
bool render_now;
if (frame_by_frame)
{
@@ -1519,7 +1516,10 @@ static int ThreadDisplayPicture(vout_thread_sys_t *vout, vlc_tick_t *deadline)
next =
ThreadDisplayPreparePicture(vout, true, false, &paused);
if (!next)
+ {
+ *deadline = VLC_TICK_INVALID;
return VLC_EGENERIC; // wait with no known deadline
+ }
}
else if (!paused)
{
--
2.29.2
More information about the vlc-devel
mailing list