summaryrefslogtreecommitdiffstats
path: root/DOCS
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2019-05-18 00:01:07 +0200
committerwm4 <wm4@nowhere>2019-09-19 20:37:04 +0200
commitfc4e59f25d68aeb2a33333b01f12a440d5b737e6 (patch)
treee320e989b009549788b6d21cce3a05aaac31d6a0 /DOCS
parent62e9a0c5f6be63c4cbe6387cbd3419fe19e98b74 (diff)
downloadmpv-fc4e59f25d68aeb2a33333b01f12a440d5b737e6.tar.bz2
mpv-fc4e59f25d68aeb2a33333b01f12a440d5b737e6.tar.xz
demux: cleaner mutex usage
The demuxer layer can start a thread to decouple the rest of the player from blocking I/O (such as network accesses). But this particular function does not support running with the thread enabled. The mutex use within it is only since thread_work() may temporarily unlock the mutex, and unlocking an unlocked mutex is not allowed. Most of the rest of the code still does proper locking, even if it's pointless and effectively single-threaded. To make this look slightly cleaner, extend the mutex around the rest of the code (like threaded code would have to do). This is mostly a cosmetic change.
Diffstat (limited to 'DOCS')
0 files changed, 0 insertions, 0 deletions