mirror of
https://github.com/mpv-player/mpv.git
synced 2026-10-20 17:51:24 +08:00
5ffd6a9e9b
Since the AO will run in a thread, and there's lots of shared state with encoding, we have to add locking. One case this doesn't handle correctly are the encode_lavc_available() calls in ao_lavc.c and vo_lavc.c. They don't do much (and usually only to protect against doing --ao=lavc with normal playback), and changing it would be a bit messy. So just leave them.