From: Jaroslav Kysela Date: Sun, 6 Oct 2019 15:05:50 +0000 (+0200) Subject: service: correct fhdtv/uhdtv height checks X-Git-Url: http://git.ipfire.org/?a=commitdiff_plain;h=691cce4a76177e14e30da6beaca28b9011a529f1;p=thirdparty%2Ftvheadend.git service: correct fhdtv/uhdtv height checks --- diff --git a/src/service.c b/src/service.c index 79b7d93f1..ae08a39a2 100644 --- a/src/service.c +++ b/src/service.c @@ -907,7 +907,7 @@ service_is_fhdtv(const service_t *t) else if (s_type == ST_NONE) { elementary_stream_t *st; TAILQ_FOREACH(st, &t->s_components.set_all, es_link) - if (SCT_ISVIDEO(st->es_type) && st->es_height == 1080) + if (SCT_ISVIDEO(st->es_type) && st->es_height >= 1080 && st->es_height < 1440) return 1; } return 0; @@ -926,7 +926,7 @@ service_is_uhdtv(const service_t *t) else if (s_type == ST_NONE) { elementary_stream_t *st; TAILQ_FOREACH(st, &t->s_components.set_all, es_link) - if (SCT_ISVIDEO(st->es_type) && st->es_height > 1080) + if (SCT_ISVIDEO(st->es_type) && st->es_height >= 1440) return 1; } return 0;