Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
wizard: another code shuffling to make --disable-iptv work, fixes #3521
  • Loading branch information
perexg committed Feb 1, 2016
1 parent 26cf764 commit ba85cfe
Showing 1 changed file with 21 additions and 7 deletions.
28 changes: 21 additions & 7 deletions src/wizard.c
Expand Up @@ -840,7 +840,19 @@ static htsmsg_t *muxes_get_list##num(void *o, const char *lang) \
wizard_muxes_t *w = p->aux; \
mpegts_network_t *mn = mpegts_network_find(w->networkid[num-1]); \
return mn ? dvb_network_class_scanfile_list(mn, lang) : NULL; \
} \
}


MUXES_FCN(1)
MUXES_FCN(2)
MUXES_FCN(3)
MUXES_FCN(4)
MUXES_FCN(5)
MUXES_FCN(6)

#if ENABLE_IPTV

#define MUXES_IPTV_FCN(num) \
static const void *muxes_get_iptv_value##num(void *o) \
{ \
wizard_page_t *p = o; \
Expand All @@ -856,12 +868,14 @@ static int muxes_set_iptv_value##num(void *o, const void *v) \
return 1; \
}

MUXES_FCN(1)
MUXES_FCN(2)
MUXES_FCN(3)
MUXES_FCN(4)
MUXES_FCN(5)
MUXES_FCN(6)
MUXES_IPTV_FCN(1)
MUXES_IPTV_FCN(2)
MUXES_IPTV_FCN(3)
MUXES_IPTV_FCN(4)
MUXES_IPTV_FCN(5)
MUXES_IPTV_FCN(6)

#endif

DESCRIPTION_FCN(muxes, N_("\
Assign predefined muxes to networks.\
Expand Down

0 comments on commit ba85cfe

Please sign in to comment.