Skip to content

WIP: aout: nonblocking play

Thomas Guillem requested to merge tguillem/vlc:aout-play-nonblock into master

Add a new play callback in vlc_aout.h. Modules implementing this new callback should never wait/sleep from play, but set a vlc_tick_t deadline instead. The core will play again the same buffer after the deadline is reached.

Waiting is then moved from the aout module to the DecoderThread. The DecoderThread stay responsive to other commands while waiting (flush, delete).

WIP:

  • Naming: play_ext ? play_async ? play_nonblock ? play (and rename all others to play_legacy) ?
  • I accepted, I will implement this play_ext in all mains modules (Pulse, AudioTrack, CoreAudio, maybe alsa if easy)

Merge request reports