- record: move TSHIFT defines into enumeration

Signed-off-by: Thilo Graf <dbt@novatux.de>
This commit is contained in:
svenhoefer
2019-01-15 21:28:38 +01:00
committed by Thilo Graf
parent 2deb1f7631
commit 578b53cf65
2 changed files with 9 additions and 6 deletions

View File

@@ -52,11 +52,6 @@ extern "C" {
#define RECORD_MAX_COUNT 8
#endif
#define TSHIFT_MODE_OFF 0
#define TSHIFT_MODE_ON 1
#define TSHIFT_MODE_PAUSE 2
#define TSHIFT_MODE_REWIND 3
class CFrontend;
class CZapitChannel;

View File

@@ -88,6 +88,14 @@ class CMoviePlayerGui : public CMenuTarget
enum repeat_mode_enum { REPEAT_OFF = 0, REPEAT_TRACK = 1, REPEAT_ALL = 2 };
enum tshift_mode
{
TSHIFT_MODE_OFF = 0,
TSHIFT_MODE_ON = 1,
TSHIFT_MODE_PAUSE = 2,
TSHIFT_MODE_REWIND = 3
};
private:
typedef struct livestream_info_t
{
@@ -249,7 +257,7 @@ class CMoviePlayerGui : public CMenuTarget
int GetDuration() { return duration; }
int getState() { return playstate; }
void UpdatePosition();
int timeshift;
tshift_mode timeshift;
void deleteTimeshift() { timeshift_deletion = true; }
int file_prozent;
cPlayback *getPlayback() { return playback; }