From 0a3a95f4a34eaf6e411ba5ab280c8f848d17b2c2 Mon Sep 17 00:00:00 2001 From: svenhoefer Date: Sun, 3 Oct 2021 23:09:22 +0200 Subject: [PATCH] - movieplayer: switch from define to enum in AC3_ATYPE handling Signed-off-by: Thilo Graf --- src/gui/movieplayer.h | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/src/gui/movieplayer.h b/src/gui/movieplayer.h index 9b019f189..254406c14 100644 --- a/src/gui/movieplayer.h +++ b/src/gui/movieplayer.h @@ -62,11 +62,6 @@ extern "C" { #define MAX_PLAYBACK_PIDS 40 #endif -#if HAVE_CST_HARDWARE -#define AC3_ATYPE0 0 -#define AC3_ATYPE1 1 -#endif - class CFrameBuffer; class CMoviePlayerGui : public CMenuTarget { @@ -120,6 +115,14 @@ class CMoviePlayerGui : public CMenuTarget int m_LastMode; int m_ThisMode; +#if HAVE_CST_HARDWARE + enum + { + AC3_ATYPE0 = 0, + AC3_ATYPE1 = 1 + }; +#endif + #ifdef ENABLE_GRAPHLCD struct tm *tm_struct; int glcd_position;