summaryrefslogtreecommitdiffstats
path: root/stream
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2014-04-09 22:36:01 +0200
committerwm4 <wm4@nowhere>2014-04-09 22:36:01 +0200
commit5131fe13e1d14acc327fe3deb6b26361a00bf8b0 (patch)
tree5aa22c1d2199f7bb5a9ed05131759cf534c3c9bc /stream
parent3836bfb1ad6a08e96e1ce88428c932f0b7766950 (diff)
downloadmpv-5131fe13e1d14acc327fe3deb6b26361a00bf8b0.tar.bz2
mpv-5131fe13e1d14acc327fe3deb6b26361a00bf8b0.tar.xz
cache: change a define to an enum
More consistent.
Diffstat (limited to 'stream')
-rw-r--r--stream/cache.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/stream/cache.c b/stream/cache.c
index 64c993975e..ac3efcfb74 100644
--- a/stream/cache.c
+++ b/stream/cache.c
@@ -130,10 +130,10 @@ enum {
CACHE_CTRL_NONE = 0,
CACHE_CTRL_QUIT = -1,
CACHE_CTRL_PING = -2,
-};
-// we should fill buffer only if space>=FILL_LIMIT
-#define FILL_LIMIT (FFMAX(16 * 1024, BYTE_META_CHUNK_SIZE * 2))
+ // we should fill buffer only if space>=FILL_LIMIT
+ FILL_LIMIT = FFMAX(16 * 1024, BYTE_META_CHUNK_SIZE * 2),
+};
static int64_t mp_clipi64(int64_t val, int64_t min, int64_t max)
{