diff options
author | Klaus Schmidinger <Klaus (dot) Schmidinger (at) tvdr (dot) de> | 2010-03-14 11:56:00 +0100 |
---|---|---|
committer | Klaus Schmidinger <Klaus (dot) Schmidinger (at) tvdr (dot) de> | 2010-03-14 11:56:00 +0100 |
commit | 1eb12b4973033212b39a53249d8fb452e6914a8a (patch) | |
tree | d805f297262d6f1051b959a3d6a29c73e2be08e2 /sources.h | |
parent | 5ce592e54a4aa741444afae8eb80dff47bc355fd (diff) | |
download | vdr-patches-1eb12b4973033212b39a53249d8fb452e6914a8a.tar.gz vdr-patches-1eb12b4973033212b39a53249d8fb452e6914a8a.tar.bz2 |
Version 1.7.14
- Fixed handling empty strings in cSource::FromString().
- Assigned the source character 'I' to "IPTV" (suggested by Rolf Ahrenberg).
- Assigned the source character 'V' to "Analog Video" (suggested by Lars Hanisch).
This obsoletes the ANALOGTV patch.
- Added support for ATSC devices (thanks to Alex Lasnier).
This obsoletes the ATSC patch.
- The "Source" item in the "Edit channel" menu now wraps around the list of sources
(suggested by Halim Sahin).
- Fixed editing channel parameters.
- The new setup option "Recording/Delete timeshift recording" controls whether a timeshift
recording is automatically deleted after viewing it.
This obsoletes the DELTIMESHIFTREC patch.
Note that the meaning of the values for this option is different from the DELTIMESHIFTREC
patch: 0 means timeshift recordings are not automatically deleted (the default behavior
as in previous versions), while 1 means to ask the user whether the recording shall be
deleted.
- Added cChannel::IsSourceType() to test if a channel's source is of a given type.
- Changed the polarization characters in cDvbSourceParam::GetOsdItem() to uppercase.
- The full timer file name is now displayed if it ends with "TITLE" or "EPISODE"
(pointed out by Udo Richter).
- Fixed "attempt to drop wrong frame from ring buffer" when skipping +/- one minute
during replay.
- The new setup option "Folders in timer menu" controls whether the file names in
the timer menu are shown with their full folder path.
Diffstat (limited to 'sources.h')
-rw-r--r-- | sources.h | 5 |
1 files changed, 4 insertions, 1 deletions
@@ -4,7 +4,7 @@ * See the main source file 'vdr.c' for copyright information and * how to reach the author. * - * $Id: sources.h 2.1 2010/02/21 16:11:19 kls Exp $ + * $Id: sources.h 2.3 2010/03/07 13:53:11 kls Exp $ */ #ifndef __SOURCES_H @@ -16,6 +16,7 @@ class cSource : public cListObject { public: enum eSourceType { stNone = 0x00000000, + stAtsc = ('A' << 24), stCable = ('C' << 24), stSat = ('S' << 24), stTerr = ('T' << 24), @@ -35,9 +36,11 @@ public: static cString ToString(int Code); static int FromString(const char *s); static int FromData(eSourceType SourceType, int Position = 0, bool East = false); + static bool IsAtsc(int Code) { return (Code & st_Mask) == stAtsc; } static bool IsCable(int Code) { return (Code & st_Mask) == stCable; } static bool IsSat(int Code) { return (Code & st_Mask) == stSat; } static bool IsTerr(int Code) { return (Code & st_Mask) == stTerr; } + static bool IsType(int Code, char Source) { return int(Code & st_Mask) == (int(Source) << 24); } }; class cSources : public cConfig<cSource> { |