Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
psip: compilation fixes, logic fixes
  • Loading branch information
perexg committed Oct 22, 2015
1 parent 0d27e84 commit c401093
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 16 deletions.
18 changes: 3 additions & 15 deletions src/epggrab/module/psip.c
Expand Up @@ -36,7 +36,7 @@ typedef struct psip_event
{
char uri[257];
char suri[257];

lang_str_t *title;
lang_str_t *summary;
lang_str_t *desc;
Expand Down Expand Up @@ -85,6 +85,7 @@ _psip_eit_callback
epggrab_ota_mux_t *ota = NULL;
mpegts_service_t *svc;
mpegts_psi_table_state_t *st;
char ubuf[UUID_HEX_SIZE];

/* Validate */
if (tableid != 0xcb) return -1;
Expand Down Expand Up @@ -121,7 +122,7 @@ _psip_eit_callback

/* Register this */
if (ota)
epggrab_ota_service_add(map, ota, idnode_uuid_as_str(&svc->s_id), 1);
epggrab_ota_service_add(map, ota, idnode_uuid_as_str(&svc->s_id, ubuf), 1);

/* No point processing */
if (!LIST_FIRST(&svc->s_channels))
Expand Down Expand Up @@ -271,19 +272,6 @@ static int
_psip_mgt_callback
(mpegts_table_t *mt, const uint8_t *ptr, int len, int tableid)
{
#if 0
int r;
int sect, last, ver, save, resched;
uint8_t seg;
uint16_t onid, tsid, sid;
uint32_t extraid;
mpegts_service_t *svc;
mpegts_mux_t *mm = mt->mt_mux;
epggrab_ota_map_t *map = mt->mt_opaque;
epggrab_module_t *mod = (epggrab_module_t *)map->om_module;
epggrab_ota_mux_t *ota = NULL;
mpegts_table_state_t *st;
#endif
int r;
int sect, last, ver;
int count, i;
Expand Down
2 changes: 1 addition & 1 deletion src/input/mpegts.h
Expand Up @@ -360,14 +360,14 @@ enum mpegts_mux_epg_flag
MM_EPG_ENABLE,
MM_EPG_FORCE,
MM_EPG_ONLY_EIT,
MM_EPG_ONLY_PSIP,
MM_EPG_ONLY_UK_FREESAT,
MM_EPG_ONLY_UK_FREEVIEW,
MM_EPG_ONLY_VIASAT_BALTIC,
MM_EPG_ONLY_OPENTV_SKY_UK,
MM_EPG_ONLY_OPENTV_SKY_ITALIA,
MM_EPG_ONLY_OPENTV_SKY_AUSAT,
MM_EPG_ONLY_BULSATCOM_39E,
MM_EPG_ONLY_PSIP,
};
#define MM_EPG_LAST MM_EPG_ONLY_OPENTV_SKY_AUSAT

Expand Down
1 change: 1 addition & 0 deletions src/input/mpegts/mpegts_mux.c
Expand Up @@ -459,6 +459,7 @@ mpegts_mux_epg_list ( void *o, const char *lang )
{ N_("Enable (auto)"), MM_EPG_ENABLE },
{ N_("Force (auto)"), MM_EPG_FORCE },
{ N_("Only EIT"), MM_EPG_ONLY_EIT },
{ N_("Only PSIP (ATSC)"), MM_EPG_ONLY_PSIP },
{ N_("Only UK Freesat"), MM_EPG_ONLY_UK_FREESAT },
{ N_("Only UK Freeview"), MM_EPG_ONLY_UK_FREEVIEW },
{ N_("Only Viasat Baltic"), MM_EPG_ONLY_VIASAT_BALTIC },
Expand Down

0 comments on commit c401093

Please sign in to comment.