From: Jaroslav Kysela Date: Wed, 11 Nov 2015 18:49:12 +0000 (+0100) Subject: revert partially 0e8a9335c391d08a7b2be9b1575f158c33c4345a - wrong idclass handling X-Git-Tag: v4.2.1~1573 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b5184b269420a242aa023faaefb9e56c38474702;p=thirdparty%2Ftvheadend.git revert partially 0e8a9335c391d08a7b2be9b1575f158c33c4345a - wrong idclass handling --- diff --git a/src/input/mpegts/satip/satip_frontend.c b/src/input/mpegts/satip/satip_frontend.c index 1199dc6ad..acdb8a614 100644 --- a/src/input/mpegts/satip/satip_frontend.c +++ b/src/input/mpegts/satip/satip_frontend.c @@ -1705,7 +1705,13 @@ satip_frontend_create if (type == DVB_TYPE_S) idc = master ? &satip_frontend_dvbs_slave_class : &satip_frontend_dvbs_class; - else if (!(idc = dvb_network_class_by_fe_type(type))) { + else if (type == DVB_TYPE_T) + idc = &satip_frontend_dvbt_class; + else if (type == DVB_TYPE_C) + idc = &satip_frontend_dvbc_class; + else if (type == DVB_TYPE_ATSC) + idc = &satip_frontend_atsc_class; + else { tvherror("satip", "unknown FE type %d", type); return NULL; } diff --git a/src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c b/src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c index bd32e75c9..c5188dabd 100644 --- a/src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c +++ b/src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c @@ -622,8 +622,14 @@ 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)) || type == DVB_TYPE_S) { - tvherror("tvhdhomerun", "unknown FE type %d", type); + if (type == DVB_TYPE_T) + idc = &tvhdhomerun_frontend_dvbt_class; + else if (type == DVB_TYPE_C) + idc = &tvhdhomerun_frontend_dvbc_class; + else if (type == DVB_TYPE_ATSC) { + idc = &tvhdhomerun_frontend_atsc_class; + } else { + tvherror("stvhdhomerun", "unknown FE type %d", type); return NULL; }