diff options
author | wm4 <wm4@nowhere> | 2019-05-18 00:01:07 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2019-09-19 20:37:04 +0200 |
commit | fc4e59f25d68aeb2a33333b01f12a440d5b737e6 (patch) | |
tree | e320e989b009549788b6d21cce3a05aaac31d6a0 /video/filter/vf_d3d11vpp.c | |
parent | 62e9a0c5f6be63c4cbe6387cbd3419fe19e98b74 (diff) | |
download | mpv-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 'video/filter/vf_d3d11vpp.c')
0 files changed, 0 insertions, 0 deletions