mirror of
https://projects.vdr-developer.org/git/vdr-plugin-skindesigner.git
synced 2023-10-19 17:58:31 +02:00
Merge branch 'pbiering/skindesigner-expose-recording-isHD'
This commit is contained in:
commit
7a6858b8f3
@ -595,20 +595,20 @@ bool RecordingIsHD(const cEvent* event) {
|
|||||||
tComponent *Component;
|
tComponent *Component;
|
||||||
int type = -1;
|
int type = -1;
|
||||||
|
|
||||||
// #1: MPEG2 (stream content: 1)
|
// #1: HVEC (stream content: 9)
|
||||||
Component = Components->GetComponent(0, 1, 0);
|
Component = Components->GetComponent(0, 9, 0);
|
||||||
if (Component) {
|
if (Component) {
|
||||||
type = Component->type;
|
isHD = true; // HVEC is always HD, type 4 would be even UHD
|
||||||
} else {
|
} else {
|
||||||
// #2: H.264 (stream content: 5)
|
// #2: H.264 (stream content: 5)
|
||||||
Component = Components->GetComponent(0, 5, 0);
|
Component = Components->GetComponent(0, 5, 0);
|
||||||
if (Component) {
|
if (Component) {
|
||||||
type = Component->type;
|
type = Component->type;
|
||||||
} else {
|
} else {
|
||||||
// #3: HVEC (stream content: 9)
|
// #3: MPEG2 (stream content: 1)
|
||||||
Component = Components->GetComponent(0, 9, 0);
|
Component = Components->GetComponent(0, 1, 0);
|
||||||
if (Component) {
|
if (Component) {
|
||||||
isHD = true; // HVEC is always HD, type 4 would be even UHD
|
type = Component->type;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user