Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
Fixed: UHD was not handled in tags and stream profiles
  • Loading branch information
Glenn-1990 authored and perexg committed Oct 17, 2016
1 parent 39108ce commit fd0dec0
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 7 deletions.
7 changes: 4 additions & 3 deletions src/profile.c
Expand Up @@ -263,9 +263,10 @@ static htsmsg_t *
profile_class_svfilter_list ( void *o, const char *lang )
{
static const struct strtab tab[] = {
{ N_("None"), PROFILE_SVF_NONE },
{ N_("SD: standard definition"), PROFILE_SVF_SD },
{ N_("HD: high definition"), PROFILE_SVF_HD },
{ N_("None"), PROFILE_SVF_NONE },
{ N_("SD: standard definition"), PROFILE_SVF_SD },
{ N_("HD: high definition"), PROFILE_SVF_HD },
{ N_("UHD: ultra high definition"), PROFILE_SVF_UHD },
};
return strtab2htsmsg(tab, 1, lang);
}
Expand Down
3 changes: 2 additions & 1 deletion src/profile.h
Expand Up @@ -40,7 +40,8 @@ typedef enum {
typedef enum {
PROFILE_SVF_NONE = 0,
PROFILE_SVF_SD,
PROFILE_SVF_HD
PROFILE_SVF_HD,
PROFILE_SVF_UHD
} profile_svfilter_t;

struct profile;
Expand Down
3 changes: 2 additions & 1 deletion src/service.c
Expand Up @@ -760,7 +760,8 @@ service_find_instance
if (pro == NULL ||
pro->pro_svfilter == PROFILE_SVF_NONE ||
(pro->pro_svfilter == PROFILE_SVF_SD && service_is_sdtv(s)) ||
(pro->pro_svfilter == PROFILE_SVF_HD && service_is_hdtv(s))) {
(pro->pro_svfilter == PROFILE_SVF_HD && service_is_hdtv(s)) ||
(pro->pro_svfilter == PROFILE_SVF_UHD && service_is_uhdtv(s))) {
r1 = s->s_enlist(s, ti, sil, flags, weight);
if (r1 == 0)
enlisted++;
Expand Down
8 changes: 6 additions & 2 deletions src/service_mapper.c
Expand Up @@ -238,14 +238,18 @@ service_mapper_process

/* Type tags */
if (conf->type_tags) {
if (service_is_hdtv(s)) {
if (service_is_uhdtv(s)) {
channel_tag_map(channel_tag_find_by_name("TV channels", 1), chn, chn);
channel_tag_map(channel_tag_find_by_name("UHDTV", 1), chn, chn);
} else if (service_is_hdtv(s)) {
channel_tag_map(channel_tag_find_by_name("TV channels", 1), chn, chn);
channel_tag_map(channel_tag_find_by_name("HDTV", 1), chn, chn);
} else if (service_is_sdtv(s)) {
channel_tag_map(channel_tag_find_by_name("TV channels", 1), chn, chn);
channel_tag_map(channel_tag_find_by_name("SDTV", 1), chn, chn);
} else if (service_is_radio(s)) {
channel_tag_map(channel_tag_find_by_name("Radio", 1), chn, chn);
if (!channel_tag_map(channel_tag_find_by_name("Radio", 0), chn, chn))
channel_tag_map(channel_tag_find_by_name("Radio channels", 1), chn, chn);
}
}

Expand Down

1 comment on commit fd0dec0

@anthonytex
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

So while this should fix tag and stream profile, it seems that there is sill a problem with htsp and some hevc channels (in particular uhd channels). Speaking with kodi's htsp devs they said that it should be htsp that is no able to parse some hevc feed... i've open a ticket some time ago but maybe nobody see it https://tvheadend.org/issues/3853 could please someone help us?

Please sign in to comment.