diff options
author | Reinhard Nißl <rnissl@gmx.de> | 2011-01-30 00:06:42 +0100 |
---|---|---|
committer | Reinhard Nißl <rnissl@gmx.de> | 2011-01-30 00:06:42 +0100 |
commit | abd4a7afb8d297fba1b81cb258044227cb3e5f77 (patch) | |
tree | 9d57ff4c097c5b56905cbe2a34974c88beb8af52 | |
parent | 08712b40469e88b9642ce9c67465789f326b7cc4 (diff) | |
download | xine-lib-abd4a7afb8d297fba1b81cb258044227cb3e5f77.tar.gz xine-lib-abd4a7afb8d297fba1b81cb258044227cb3e5f77.tar.bz2 |
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
-rw-r--r-- | src/xine-engine/video_out.c | 3 |
1 files changed, 2 insertions, 1 deletions
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; } |