[vlc-devel] [PATCH v2 6/7] aout: make the drain implementation asynchronous

Thomas Guillem thomas at gllm.fr
Mon Mar 18 09:18:34 CET 2019

On Sat, Mar 16, 2019, at 03:31, Rémi Denis-Courmont wrote:
> Le mercredi 13 mars 2019, 10:55:54 EET Thomas Guillem a écrit :
> > Yes, only the waveout plugin can do an asynchronous drain (for now).
> You wrote, on the very same topic, that the interface has to handle all 
> backends. Realistlcally, drain will be blocking for the foreseeable future, at 
> the very least because of ALSA. Deal with it.
> Besides, there are no explanations what the point of this change is. 
> Asynchronous drain is not an end of its own, and I cannot say that I see the 
> use case (unlike asynchronous play).

Mostly to simplify lock handling, because I wanted to protect every aout stream call with a mutex for my gapless implementation. But I found an other way now.

But I still need to separate drain from flush and have the default loozy drain emulation for most modules.

> -- 
> Rémi Denis-Courmont
> _______________________________________________
> vlc-devel mailing list
> To unsubscribe or modify your subscription options:
> https://mailman.videolan.org/listinfo/vlc-devel

More information about the vlc-devel mailing list