From 4dfaa373846e79f1bc34b50426c1584b948c0eb6 Mon Sep 17 00:00:00 2001 From: wm4 Date: Sat, 1 Sep 2018 13:04:45 +0200 Subject: demux, stream: readd cache-speed in some other form it's more like an input speed rather than a cache speed, but who cares. --- osdep/timer.h | 3 +++ 1 file changed, 3 insertions(+) (limited to 'osdep') 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); -- cgit v1.2.3