diff options
author | wm4 <wm4@nowhere> | 2014-05-23 00:20:57 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-23 00:20:57 +0200 |
commit | b69d57ebe87cb43ea29ce7b7146d63338b7ed3e7 (patch) | |
tree | 802156fbf53b1531afe32d14e7113eb807f9af82 /stream/resolve | |
parent | 2e6b0b4ee47d227bcc1d32d23859532592b33386 (diff) | |
download | mpv-b69d57ebe87cb43ea29ce7b7146d63338b7ed3e7.tar.bz2 mpv-b69d57ebe87cb43ea29ce7b7146d63338b7ed3e7.tar.xz |
timer: workaround for crappy operating systems
Some operating systems apparently can't deal with really long timeouts
in pthread_cond_timedwait(). Passing a time about 300000 in the future
makes the call return immediately. (tv_sec/time_t doesn't overflow in
this situation.) Reduce the wait time to about 100 days, which seems
to work fine.
The list of affected OSes follows: OSX
Diffstat (limited to 'stream/resolve')
0 files changed, 0 insertions, 0 deletions