1
0
mirror of https://github.com/mpv-player/mpv synced 2025-03-02 04:11:03 +00:00

cache: change a define to an enum

More consistent.
This commit is contained in:
wm4 2014-04-09 22:36:01 +02:00
parent 3836bfb1ad
commit 5131fe13e1

View File

@ -130,10 +130,10 @@ enum {
CACHE_CTRL_NONE = 0, CACHE_CTRL_NONE = 0,
CACHE_CTRL_QUIT = -1, CACHE_CTRL_QUIT = -1,
CACHE_CTRL_PING = -2, CACHE_CTRL_PING = -2,
};
// we should fill buffer only if space>=FILL_LIMIT // we should fill buffer only if space>=FILL_LIMIT
#define FILL_LIMIT (FFMAX(16 * 1024, BYTE_META_CHUNK_SIZE * 2)) FILL_LIMIT = FFMAX(16 * 1024, BYTE_META_CHUNK_SIZE * 2),
};
static int64_t mp_clipi64(int64_t val, int64_t min, int64_t max) static int64_t mp_clipi64(int64_t val, int64_t min, int64_t max)
{ {