Skip to content
Snippets Groups Projects

mmdevice: move MTA initialization to the worker thread

Merged Pierre Lamot requested to merge chub/vlc:mmdevice/mta-3.0 into 3.0.x
  1. Jun 09, 2023
    • Pierre Lamot's avatar
      mmdevice: move MTA initialization to the worker thread · 26fb05e9
      Pierre Lamot authored and Jean-Baptiste Kempf's avatar Jean-Baptiste Kempf committed
      MTA was checked in the Open function. As this function is called from libvlc
      thread, this implies that a user of libvlc should have its own thread in MTA
      which may not be possible for various reasons.
      
      * MuteSet, VolumeSet, Play, DeviceSelect, Close callback don't require MTA
      * Flush, Pause and Start callbacks still require MTA, but as these functions are
        called from VLC internal threads this is a lesser issue
      
      (cherry-picked from 2fa81b6f)
      26fb05e9
Loading