[vlc-devel] [PATCH 1/2] vout: add vout_Drain()

Francois Cartegnie fcvlcdev at free.fr
Fri Mar 17 09:46:52 CET 2017


Le 15/03/2017 à 15:33, Thomas Guillem a écrit :
> vout_Drain() asks the vout thread to drain its queued pictures. This function
> will wait for the last picture to be displayed.

> @@ -64,6 +64,7 @@ void vout_control_Init(vout_control_t *ctrl)
>      ctrl->is_dead = false;
>      ctrl->can_sleep = true;
>      ctrl->is_processing = false;
> +    ctrl->is_draining = false;

I don't know if those states are totally exclusive,
but in that case, it whould be better to have an enum for those states
instead of juggling with many booleans.

Francois


More information about the vlc-devel mailing list