]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epggrab: ensure opentv gets registered during init scan.
authorAdam Sutton <dev@adamsutton.me.uk>
Sat, 21 Sep 2013 21:43:49 +0000 (22:43 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Sat, 21 Sep 2013 21:44:57 +0000 (22:44 +0100)
src/epggrab/module/opentv.c

index a7e17a589bd263721e685879bf0fe273c8ef90ac..cc6584ba55a8586a2295e55ce9aa17a125dc59c2 100644 (file)
@@ -425,14 +425,6 @@ opentv_table_callback
   opentv_module_t *mod = sta->os_mod;
   epggrab_ota_mux_t *ota = sta->os_ota;
 
-  /* Register */
-  if (!ota) {
-    sta->os_ota = ota
-      = epggrab_ota_register((epggrab_module_ota_t*)mod, mt->mt_mux,
-                             1200, 3600);
-  }
-    
-
   /* Validate */
   if (len < 7) return -1;
 
@@ -501,6 +493,14 @@ opentv_bat_callback
   opentv_status_t *sta = mt->mt_opaque;
   opentv_module_t *mod = sta->os_mod;
   int r = dvb_bat_callback(mt, buf, len, tableid);
+  epggrab_ota_mux_t *ota = sta->os_ota;
+
+  /* Register */
+  if (!ota) {
+    sta->os_ota = ota
+      = epggrab_ota_register((epggrab_module_ota_t*)mod, mt->mt_mux,
+                             1200, 3600);
+  }
 
   /* Complete */
   if (!r) {