diff options
Diffstat (limited to 'coreengine/viewelement.c')
| -rw-r--r-- | coreengine/viewelement.c | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/coreengine/viewelement.c b/coreengine/viewelement.c index 975757c..a30608f 100644 --- a/coreengine/viewelement.c +++ b/coreengine/viewelement.c @@ -657,11 +657,12 @@ bool RecordingIsUHD(const cEvent* event) { return isUHD; }; -bool RecordingIsRadio(const cEvent* event) { +bool RecordingIsRadio(const cEvent* event, const double FramesPerSecond) { // detect Radio from 'info' bool isRadio = false; bool hasAudio = false; bool hasVideo = false; + cComponents *Components = (cComponents *)event->Components(); if (Components) { // Stream: 1 = MPEG2-Video, 2 = MPEG2 Audio, 3 = Untertitel, 4 = AC3-Audio, 5 = H.264-Video, 6 = HEAAC-Audio, 7 = DTS/DTS HD audio, 8 = SRM/CPCM data, 9 = HEVC Video, AC4 Audio @@ -704,8 +705,11 @@ bool RecordingIsRadio(const cEvent* event) { }; }; - if ((hasAudio == true) && (hasVideo == false)) - isRadio = true; + if ((hasAudio == true) && (hasVideo == false)) { + if (FramesPerSecond < 24) { // workaround for issue of missing "X 1" on some SD channels (e.g. RTL) + isRadio = true; + }; + }; return isRadio; }; |
