diff options
author | wm4 <wm4@nowhere> | 2018-09-01 13:04:45 +0200 |
---|---|---|
committer | Anton Kindestam <antonki@kth.se> | 2018-12-06 10:30:41 +0100 |
commit | 4dfaa373846e79f1bc34b50426c1584b948c0eb6 (patch) | |
tree | 145bc5c7d1ae9e23efc431f29234e29c148de5e4 /osdep/timer.h | |
parent | b1ba7de34dd5685a082454817f23509d1c28e4aa (diff) | |
download | mpv-4dfaa373846e79f1bc34b50426c1584b948c0eb6.tar.bz2 mpv-4dfaa373846e79f1bc34b50426c1584b948c0eb6.tar.xz |
demux, stream: readd cache-speed in some other form
it's more like an input speed rather than a cache speed, but who cares.
Diffstat (limited to 'osdep/timer.h')
-rw-r--r-- | osdep/timer.h | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/osdep/timer.h b/osdep/timer.h index 78457d9b9a..be5e9c0467 100644 --- a/osdep/timer.h +++ b/osdep/timer.h @@ -39,6 +39,9 @@ void mp_sleep_us(int64_t us); #define MP_START_TIME 10000000 +// Duration of a second in mpv time. +#define MP_SECOND_US (1000 * 1000) + // Add a time in seconds to the given time in microseconds, and return it. // Takes care of possible overflows. Never returns a negative or 0 time. int64_t mp_add_timeout(int64_t time_us, double timeout_sec); |