From abd4a7afb8d297fba1b81cb258044227cb3e5f77 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Reinhard=20Ni=C3=9Fl?= Date: Sun, 30 Jan 2011 00:06:42 +0100 Subject: Correct implementation of vo_trigger_drawing(). Drawing can only be triggered when a backup image exists. Otherwise it's useless. Therefore, honor it only when a backup frame exists. --HG-- extra : rebase_source : bffa00a9d9ed4e8994185655d20ba2b3fc9ad818 --- src/xine-engine/video_out.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/xine-engine/video_out.c b/src/xine-engine/video_out.c index fc227443c..35f66a719 100644 --- a/src/xine-engine/video_out.c +++ b/src/xine-engine/video_out.c @@ -1296,7 +1296,8 @@ static void *video_out_loop (void *this_gen) { if (usec_to_sleep > 0) { - if (0 == interruptable_sleep(this, usec_to_sleep)) + /* honor trigger update only when a backup img is available */ + if (0 == interruptable_sleep(this, usec_to_sleep) && this->img_backup) break; } -- cgit v1.2.3