Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
mpegts: correct logic for DVB_TYPE (tvhdhomerun)
  • Loading branch information
perexg committed Nov 11, 2015
1 parent e9a7b3c commit 4dd5f71
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/input/mpegts/mpegts_network_dvb.c
Expand Up @@ -605,6 +605,7 @@ dvb_network_create0

ln = calloc(1, sizeof(dvb_network_t));
ln->ln_type = dvb_fe_type_by_network_class(idc);
assert(ln->ln_type != DVB_TYPE_NONE);

/* Create */
if (!(ln = (dvb_network_t*)mpegts_network_create0((void*)ln,
Expand Down
2 changes: 1 addition & 1 deletion src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c
Expand Up @@ -622,7 +622,7 @@ tvhdhomerun_frontend_create(tvhdhomerun_device_t *hd, struct hdhomerun_discover_
uuid = htsmsg_get_str(conf, "uuid");

/* Class */
if (!(idc = dvb_network_class_by_fe_type(type))) {
if (!(idc = dvb_network_class_by_fe_type(type)) || type == DVB_TYPE_S) {
tvherror("tvhdhomerun", "unknown FE type %d", type);
return NULL;
}
Expand Down

0 comments on commit 4dd5f71

Please sign in to comment.