Skip to content

Commit 64d6e35

Browse files
committed
vo: wake up core when VO requests redraw
a74a324 returned responsibility of video redraw back to playloop. The playloop is only run if something wakes up the core. However, the logic for VO requested redraw only wakes up the core when in->want_redraw is false, which is only resetted by vo_redraw, called from the core. This creates a situation where it can never wake up the core, so redrawing never happens even when VO requests it. efc44d0 caused the issue to surface because it also throttles VO requested redraws, and in some cases results in the above behavior. Fix this by always waking up core when the VO requests redraw.
1 parent b7e8fe9 commit 64d6e35

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

video/out/vo.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1166,7 +1166,7 @@ static MP_THREAD_VOID vo_thread(void *ptr)
11661166
wakeup_core(vo);
11671167
}
11681168
}
1169-
if (vo->want_redraw && !in->want_redraw) {
1169+
if (vo->want_redraw) {
11701170
in->want_redraw = true;
11711171
wakeup_core(vo);
11721172
}

0 commit comments

Comments
 (0)