summaryrefslogtreecommitdiff
path: root/coreengine
diff options
context:
space:
mode:
authorPeter Bieringer <pb@bieringer.de>2021-01-20 21:29:37 +0100
committerPeter Bieringer <pb@bieringer.de>2021-01-20 21:29:37 +0100
commitce520980fd3de9da99c2ed5f84ea00407b60b20f (patch)
treea65754c6e4a9aa27a95d4d43632b4ce04fe491a6 /coreengine
parent5dbfd5278466b4f9d4911cf9b56f58692a2a21e2 (diff)
downloadvdr-plugin-skindesigner-ce520980fd3de9da99c2ed5f84ea00407b60b20f.tar.gz
vdr-plugin-skindesigner-ce520980fd3de9da99c2ed5f84ea00407b60b20f.tar.bz2
fix detection order from high to low
Diffstat (limited to 'coreengine')
-rw-r--r--coreengine/viewelement.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/coreengine/viewelement.c b/coreengine/viewelement.c
index 26ff9f4..306e0ce 100644
--- a/coreengine/viewelement.c
+++ b/coreengine/viewelement.c
@@ -595,20 +595,20 @@ bool RecordingIsHD(const cEvent* event) {
tComponent *Component;
int type = -1;
- // #1: MPEG2 (stream content: 1)
- Component = Components->GetComponent(0, 1, 0);
+ // #1: HVEC (stream content: 9)
+ Component = Components->GetComponent(0, 9, 0);
if (Component) {
- type = Component->type;
+ isHD = true; // HVEC is always HD, type 4 would be even UHD
} else {
// #2: H.264 (stream content: 5)
Component = Components->GetComponent(0, 5, 0);
if (Component) {
type = Component->type;
} else {
- // #3: HVEC (stream content: 9)
- Component = Components->GetComponent(0, 9, 0);
+ // #3: MPEG2 (stream content: 1)
+ Component = Components->GetComponent(0, 1, 0);
if (Component) {
- isHD = true; // HVEC is always HD, type 4 would be even UHD
+ type = Component->type;
};
};
};