Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
hdhomerun: add new ATSC types to the tuner config
  • Loading branch information
perexg committed Dec 9, 2015
1 parent 7ef441e commit 8a2eab8
Showing 1 changed file with 6 additions and 2 deletions.
8 changes: 6 additions & 2 deletions src/input/mpegts/tvhdhomerun/tvhdhomerun.c
Expand Up @@ -77,7 +77,8 @@ tvhdhomerun_device_class_override_enum( void * p, const char *lang )
htsmsg_t *m = htsmsg_create_list();
htsmsg_add_str(m, NULL, "DVB-T");
htsmsg_add_str(m, NULL, "DVB-C");
htsmsg_add_str(m, NULL, "ATSC");
htsmsg_add_str(m, NULL, "ATSC-T");
htsmsg_add_str(m, NULL, "ATSC-C");
return m;
}

Expand Down Expand Up @@ -283,8 +284,11 @@ static void tvhdhomerun_device_create(struct hdhomerun_discover_device_t *dInfo)
if ( conf != NULL ) {
const char *override_type = htsmsg_get_str(conf, "fe_override");
if ( override_type != NULL) {
if ( !strcmp(override_type, "ATSC" ) )
override_type = "ATSC-T";
type = dvb_str2type(override_type);
if ( ! ( type == DVB_TYPE_C || type == DVB_TYPE_T || type == DVB_TYPE_ATSC_T ) ) {
if ( ! ( type == DVB_TYPE_C || type == DVB_TYPE_T ||
type == DVB_TYPE_ATSC_T || type == DVB_TYPE_ATSC_C ) ) {
type = DVB_TYPE_C;
}
}
Expand Down

0 comments on commit 8a2eab8

Please sign in to comment.