diff --git a/mythtv/libs/libmythtv/libmythtv.pro b/mythtv/libs/libmythtv/libmythtv.pro index 0ab94a295cb..63256e15b32 100644 --- a/mythtv/libs/libmythtv/libmythtv.pro +++ b/mythtv/libs/libmythtv/libmythtv.pro @@ -148,6 +148,7 @@ HEADERS += recordingfile.h HEADERS += driveroption.h HEADERS += mythhdrvideometadata.h HEADERS += mythhdrtracker.h +HEADERS += scantype.h SOURCES += bytereader.cpp SOURCES += recordinginfo.cpp diff --git a/mythtv/libs/libmythtv/mpeg/H2645Parser.h b/mythtv/libs/libmythtv/mpeg/H2645Parser.h index 21d17e88493..4e488eca805 100644 --- a/mythtv/libs/libmythtv/mpeg/H2645Parser.h +++ b/mythtv/libs/libmythtv/mpeg/H2645Parser.h @@ -30,11 +30,11 @@ #include "libmythbase/compat.h" // for uint on Darwin, MinGW #include "libmythbase/mythconfig.h" #include "libmythbase/mythlogging.h" -#include "libmythtv/recorders/recorderbase.h" // for ScanType + +#include "libmythtv/scantype.h" class BitReader; class FrameRate; -enum class SCAN_t : uint8_t; class H2645Parser { public: diff --git a/mythtv/libs/libmythtv/recorders/dtvrecorder.h b/mythtv/libs/libmythtv/recorders/dtvrecorder.h index 140b67349fd..6eb28fde1ed 100644 --- a/mythtv/libs/libmythtv/recorders/dtvrecorder.h +++ b/mythtv/libs/libmythtv/recorders/dtvrecorder.h @@ -17,6 +17,7 @@ #include "libmythtv/mpeg/H2645Parser.h" #include "libmythtv/mpeg/streamlisteners.h" #include "libmythtv/recorders/recorderbase.h" +#include "libmythtv/scantype.h" class MPEGStreamData; class TSPacket; diff --git a/mythtv/libs/libmythtv/recorders/recorderbase.h b/mythtv/libs/libmythtv/recorders/recorderbase.h index 79856d91f92..16467334aa1 100644 --- a/mythtv/libs/libmythtv/recorders/recorderbase.h +++ b/mythtv/libs/libmythtv/recorders/recorderbase.h @@ -18,6 +18,7 @@ #include "libmythtv/mythtvexp.h" #include "libmythtv/recordingfile.h" #include "libmythtv/recordingquality.h" +#include "libmythtv/scantype.h" extern "C" { @@ -52,13 +53,6 @@ class FrameRate uint m_den; }; -enum class SCAN_t : uint8_t { - UNKNOWN_SCAN, - INTERLACED, - PROGRESSIVE, - VARIABLE -}; - /** \class RecorderBase * \brief This is the abstract base class for supporting * recorder hardware. diff --git a/mythtv/libs/libmythtv/scantype.h b/mythtv/libs/libmythtv/scantype.h new file mode 100644 index 00000000000..d5f11bf28c0 --- /dev/null +++ b/mythtv/libs/libmythtv/scantype.h @@ -0,0 +1,11 @@ +#ifndef SCAN_TYPE_H_ +#define SCAN_TYPE_H_ + +enum class SCAN_t : uint8_t { + UNKNOWN_SCAN, + INTERLACED, + PROGRESSIVE, + VARIABLE +}; + +#endif // SCAN_TYPE_H_