diff options
author | wm4 <wm4@nowhere> | 2016-09-21 15:55:34 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2016-09-21 17:34:55 +0200 |
commit | 14c232bdbfbb16f427632d579430fa1a522f7f73 (patch) | |
tree | 3e5cf05ca68f71f79d9467c1ce482b2feeb56a29 /player/command.c | |
parent | 47f3cc7e6bf78609551312f84c93cccf194a5930 (diff) | |
download | mpv-14c232bdbfbb16f427632d579430fa1a522f7f73.tar.bz2 mpv-14c232bdbfbb16f427632d579430fa1a522f7f73.tar.xz |
client API: fix init/destruction race conditions
mp_new_client() blatantly accessed some mutex-protected state outside of
the mutex.
The destruction code is in theory OK, but with changes in the following
commits it'll be a bit hard to guarantee that it stays this way. Add a
simple flag that makes adding new clients impossible, so that having no
clients after shutdown_clients() remains guaranteed.
Diffstat (limited to 'player/command.c')
0 files changed, 0 insertions, 0 deletions