Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
epg: simplify the otamux registration
- move the timeout / interval initialization to one place
- also fix values for opentv
  • Loading branch information
perexg committed Jun 27, 2014
1 parent 69a5a9e commit db3fed5
Show file tree
Hide file tree
Showing 4 changed files with 6 additions and 7 deletions.
2 changes: 1 addition & 1 deletion src/epggrab/module/eit.c
Expand Up @@ -573,7 +573,7 @@ _eit_callback

/* Register interest */
if (tableid >= 0x50)
ota = epggrab_ota_register((epggrab_module_ota_t*)mod, mm, 3600, 240);
ota = epggrab_ota_register((epggrab_module_ota_t*)mod, mm);

/* Begin */
r = dvb_table_begin(mt, ptr, len, tableid, extraid, 11, &st, &sect, &last, &ver);
Expand Down
3 changes: 1 addition & 2 deletions src/epggrab/module/opentv.c
Expand Up @@ -504,8 +504,7 @@ opentv_bat_callback
/* Register */
if (!ota) {
sta->os_ota = ota
= epggrab_ota_register((epggrab_module_ota_t*)mod, mt->mt_mux,
1200, 3600);
= epggrab_ota_register((epggrab_module_ota_t*)mod, mt->mt_mux);
}

/* Complete */
Expand Down
5 changes: 3 additions & 2 deletions src/epggrab/otamux.c
Expand Up @@ -191,10 +191,11 @@ epggrab_mux_stop ( mpegts_mux_t *mm, void *p )

epggrab_ota_mux_t *
epggrab_ota_register
( epggrab_module_ota_t *mod, mpegts_mux_t *mm,
int interval, int timeout )
( epggrab_module_ota_t *mod, mpegts_mux_t *mm )
{
int save = 0;
int interval = 3600;
int timeout = 240;
epggrab_ota_map_t *map;
epggrab_ota_mux_t *ota;

Expand Down
3 changes: 1 addition & 2 deletions src/epggrab/private.h
Expand Up @@ -131,8 +131,7 @@ void epggrab_ota_destroy_by_dm ( struct dvb_mux *dm );
*/

epggrab_ota_mux_t *epggrab_ota_register
( epggrab_module_ota_t *mod, struct mpegts_mux *mux,
int timeout, int interval );
( epggrab_module_ota_t *mod, struct mpegts_mux *mux );

/*
* State change
Expand Down

0 comments on commit db3fed5

Please sign in to comment.