]> git.sesse.net Git - vlc/commit
vout: remove flag is_sleeping from vout_control_t
authorFelix Abecassis <felix.abecassis@gmail.com>
Wed, 19 Feb 2014 11:30:03 +0000 (12:30 +0100)
committerJean-Baptiste Kempf <jb@videolan.org>
Thu, 20 Feb 2014 12:10:32 +0000 (13:10 +0100)
commitd72d22ae4d5a3115834bad8dae0a57b2e7904d94
treee41757c5c4316e2dcb820406e728bb1215d431ab
parent121c7fc1c9125774fd95b6c8161db1bfd6f1376a
vout: remove flag is_sleeping from vout_control_t

Previously, the is_sleeping flag was not set to true if a deadline was
passed to vout_control_Pop. Consequently, the condition variable would
not be signalled by function vout_control_Wake, called by
vout_PutPicture to give a vout a picture to display. Thus, the vout
would not wake up even when receiving several pictures, instead the
vout waits until the end of the deadline. If the deadline was computed
as the "refresh" deadline from ThreadDisplayPicture, the sleep time
can be as high as 60-70 ms.

Signed-off-by: Jean-Baptiste Kempf <jb@videolan.org>
src/video_output/control.c
src/video_output/control.h