From 2f42801f84fae1b7700541f3359f7461ee4ceba8 Mon Sep 17 00:00:00 2001 From: vanhofen Date: Sun, 3 Oct 2021 23:09:22 +0200 Subject: [PATCH] movieplayer: switch from define to enum in AC3_ATYPE handling Origin commit data ------------------ Commit: https://github.com/neutrino-images/ni-neutrino/commit/e0d5f4180b181a62789303fb02072a4424bac120 Author: vanhofen Date: 2021-10-03 (Sun, 03 Oct 2021) Origin message was: ------------------ - movieplayer: switch from define to enum in AC3_ATYPE handling --- 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 01b768259..3f0d59459 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;