epggrab: ensure opentv gets registered during init scan.

This commit is contained in:
Adam Sutton 2013-09-21 22:43:49 +01:00
parent 5b9088dc80
commit 2f01030063

View 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) {