summaryrefslogtreecommitdiffstats
path: root/video
diff options
context:
space:
mode:
Diffstat (limited to 'video')
-rw-r--r--video/out/vo.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/video/out/vo.c b/video/out/vo.c
index 9e1d1c3dd2..c260ac7f0f 100644
--- a/video/out/vo.c
+++ b/video/out/vo.c
@@ -868,11 +868,9 @@ void vo_set_paused(struct vo *vo, bool paused)
pthread_mutex_lock(&in->lock);
if (in->paused != paused) {
in->paused = paused;
- if (in->paused) {
- if (in->dropped_frame)
- in->request_redraw = true;
- in->last_flip = 0;
- }
+ if (in->paused && in->dropped_frame)
+ in->request_redraw = true;
+ in->last_flip = 0;
}
pthread_mutex_unlock(&in->lock);
vo_control(vo, paused ? VOCTRL_PAUSE : VOCTRL_RESUME, NULL);