]> git.ipfire.org Git - thirdparty/tvheadend.git/commitdiff
epggrab: change order of init to ensure things work properly
authorAdam Sutton <dev@adamsutton.me.uk>
Thu, 5 Sep 2013 14:14:41 +0000 (15:14 +0100)
committerAdam Sutton <dev@adamsutton.me.uk>
Thu, 5 Sep 2013 14:14:41 +0000 (15:14 +0100)
src/epggrab.c

index 3e13a4f5af4354453ca2b97caaaf18a5c331149b..b421b2609314b1e9cc723fdece6c2ad48818701d 100644 (file)
@@ -378,18 +378,9 @@ void epggrab_init ( void )
   epggrab_channel_reicon     = 0;
   epggrab_epgdb_periodicsave = 0;
 
-  /* Lists */
-#if 0//ENABLE_LINUXDVB
-  extern TAILQ_HEAD(, epggrab_ota_mux) ota_mux_all;
-  TAILQ_INIT(&ota_mux_all);
-#endif
-
   pthread_mutex_init(&epggrab_mutex, NULL);
   pthread_cond_init(&epggrab_cond, NULL);
 
-  /* Initialise the OTA subsystem */
-  epggrab_ota_init();
-  
   /* Initialise modules */
 #if ENABLE_MPEGTS
   eit_init();
@@ -398,11 +389,11 @@ void epggrab_init ( void )
   pyepg_init();
   xmltv_init();
 
+  /* Initialise the OTA subsystem */
+  epggrab_ota_init();
+  
   /* Load config */
   _epggrab_load();
-#if 0//ENABLE_LINUXDVB
-  epggrab_ota_load();
-#endif
 
   /* Start internal grab thread */
   pthread_t      tid;