summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorwm4 <wm4@nowhere>2015-09-11 23:03:04 +0200
committerwm4 <wm4@nowhere>2015-09-11 23:03:04 +0200
commitf095e86b61022613371334d80552b918946b9387 (patch)
treed3b6027cd2edc62f0554a87f73d5e4b107d8ce62
parentc2ee824c26ef152b5ed794f9b66ae7f3525dd008 (diff)
downloadmpv-f095e86b61022613371334d80552b918946b9387.tar.bz2
mpv-f095e86b61022613371334d80552b918946b9387.tar.xz
af: use generic statuc codes
The reason MPlayer traditionally duplicated them all over the place is that it wanted every component to be a self-contained library (e.g. audio filters were in "libaf"). But this is not necessarily helpful, and this change makes the following commit a bit simpler.
-rw-r--r--audio/filter/af.h14
1 files changed, 7 insertions, 7 deletions
diff --git a/audio/filter/af.h b/audio/filter/af.h
index 88cbbc0119..944ac54427 100644
--- a/audio/filter/af.h
+++ b/audio/filter/af.h
@@ -27,6 +27,7 @@
#include "audio/chmap.h"
#include "audio/audio.h"
#include "common/msg.h"
+#include "common/common.h"
struct af_instance;
struct mpv_global;
@@ -104,13 +105,12 @@ struct af_stream {
};
// Return values
-#define AF_DETACH 2
-#define AF_OK 1
-#define AF_TRUE 1
-#define AF_FALSE 0
-#define AF_UNKNOWN -1
-#define AF_ERROR -2
-#define AF_FATAL -3
+#define AF_DETACH (CONTROL_OK + 1)
+#define AF_OK CONTROL_OK
+#define AF_TRUE CONTROL_TRUE
+#define AF_FALSE CONTROL_FALSE
+#define AF_UNKNOWN CONTROL_UNKNOWN
+#define AF_ERROR CONTROL_ERROR
// Parameters for af_control_*
enum af_control {