diff options
author | wm4 <wm4@nowhere> | 2014-05-18 21:22:09 +0200 |
---|---|---|
committer | wm4 <wm4@nowhere> | 2014-05-18 21:44:45 +0200 |
commit | 42a51310c1a72805fe6c01438366354641d6d6ce (patch) | |
tree | 681c78acea1564f0f07b42d8b06526711314d560 /audio | |
parent | 7fec0c630b80831915115c14327cccaf70d37c50 (diff) | |
download | mpv-42a51310c1a72805fe6c01438366354641d6d6ce.tar.bz2 mpv-42a51310c1a72805fe6c01438366354641d6d6ce.tar.xz |
timer: account for negative time values
It can easily happen that mp_time_us_to_timespec() gets a time in the
past, and then the time difference will be negative. Regression
introduced in commit f47a4fc3.
Also fix an underflow check in mp_add_timeout().
Diffstat (limited to 'audio')
0 files changed, 0 insertions, 0 deletions