Skip to content
Snippets Groups Projects
VLC

VLC

Project ID: 4640
Forked from VideoLAN / VLC
Source project has a limited visibility.
Romain Vimont's avatar
Romain Vimont authored
The deadline computation was shared between the vout thread function and
DisplayPicture(), both by hacking the return value (VLC_EGENERIC meaning
"wait") and using an output parameter, to handle 3 possible cases:
 - VLC_SUCCESS: do not wait
 - VLC_EGENERIC and deadline set: wait for deadline
 - VLC_EGENERIC and deadline not set: wait but no deadline is known

In case of VLC_EGENERIC, the vout thread function computed the max
between the returned value and 100ms.

Simplify by computing the expected deadline from DisplayPicture()
directly.
4716c6f7
Name Last commit Last update