diff options
author | sesse <sesse@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-06 10:07:39 +0000 |
---|---|---|
committer | sesse <sesse@b3059339-0415-0410-9bf9-f77b7e298cf2> | 2010-03-06 10:07:39 +0000 |
commit | 8e19e877610819b5be4092fd4ce9b4183b1bfd4b (patch) | |
tree | a7f37e93826c86ecb02c806d568dfafab5d0c6ec /mplayer.h | |
parent | 474c365479b863984e34c0c2e0dfe6c9d353c7fb (diff) | |
download | mpv-8e19e877610819b5be4092fd4ce9b4183b1bfd4b.tar.bz2 mpv-8e19e877610819b5be4092fd4ce9b4183b1bfd4b.tar.xz |
Fix semaphore behavior in WaitForSingleObject.
Two simple bugfixes for semaphores in WaitForSingleObject:
First, semaphore count should be decreased on loading the semaphore, not
increased. The case for duration=0 had this wrong (duration=-1 was fine).
Second, the code for duration=-1 forgot to set the return value, so it
would always return WAIT_FAILED.
git-svn-id: svn://svn.mplayerhq.hu/mplayer/trunk@30852 b3059339-0415-0410-9bf9-f77b7e298cf2
Diffstat (limited to 'mplayer.h')
0 files changed, 0 insertions, 0 deletions