]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
Set some initial FE conditions for CableCARD
authorRobert Cameron <rob@rpcameron.net>
Tue, 22 May 2018 15:53:48 +0000 (08:53 -0700)
committerperexg <perex@perex.cz>
Thu, 7 Jun 2018 16:17:44 +0000 (18:17 +0200)
src/input/mpegts/tvhdhomerun/tvhdhomerun_frontend.c

index b872db8922d128815454141f2bfc27e3c6dd9dc7..6277e81cb1a2b8e15c33b9784dabc88555fa9727 100644 (file)
@@ -763,6 +763,13 @@ tvhdhomerun_frontend_create(tvhdhomerun_device_t *hd, struct hdhomerun_discover_
   hfe = (tvhdhomerun_frontend_t*)mpegts_input_create0((mpegts_input_t*)hfe, idc, uuid, conf);
   if (!hfe) return NULL;
 
+  /* Set some initial CableCARD settings */
+  if (type == DVB_TYPE_CABLECARD) {
+    hfe->mi_ota_epg = 0;
+    hfe->mi_idlescan = 0;
+    hfe->mi_remove_scrambled_bits = 1;
+  }
+
   /* Callbacks */
   hfe->mi_get_weight   = tvhdhomerun_frontend_get_weight;
   hfe->mi_get_priority = tvhdhomerun_frontend_get_priority;