From f095e86b61022613371334d80552b918946b9387 Mon Sep 17 00:00:00 2001 From: wm4 Date: Fri, 11 Sep 2015 23:03:04 +0200 Subject: 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. --- audio/filter/af.h | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) (limited to 'audio/filter') 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 { -- cgit v1.2.3