[vlc-devel] [PATCH v4 22/23] video_output: code cleaning
Steve Lhomme
robux4 at ycbcr.xyz
Fri Aug 21 11:59:40 CEST 2020
---
src/video_output/video_output.c | 4 +---
1 file changed, 1 insertion(+), 3 deletions(-)
diff --git a/src/video_output/video_output.c b/src/video_output/video_output.c
index bf78ff975f6..041be46a28a 100644
--- a/src/video_output/video_output.c
+++ b/src/video_output/video_output.c
@@ -1616,7 +1616,7 @@ void vout_NextPicture(vout_thread_t *vout, vlc_tick_t *duration)
if (sys->step.last == VLC_TICK_INVALID)
sys->step.last = sys->displayed.timestamp;
- if (ThreadDisplayPicture(sys, NULL) == 0) {
+ if (ThreadDisplayPicture(sys, NULL) == VLC_SUCCESS) {
sys->step.timestamp = sys->displayed.timestamp;
if (sys->step.last != VLC_TICK_INVALID &&
@@ -1844,8 +1844,6 @@ static void *Thread(void *object)
deadline -= vout_chrono_GetHigh(&sys->render) + VOUT_MWAIT_TOLERANCE;
const vlc_tick_t max_deadline = vlc_tick_now() + VLC_TICK_FROM_MS(100);
deadline = __MIN(deadline, max_deadline);
- } else {
- deadline = INVALID_DEADLINE;
}
vlc_mutex_lock(&sys->control_lock);
--
2.26.2
More information about the vlc-devel
mailing list