Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
linuxdvb: fix for the previous patch (fixed bad macro), fixes #2807
  • Loading branch information
perexg committed Apr 28, 2015
1 parent 97229aa commit bd21995
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/input/mpegts/linuxdvb/linuxdvb_frontend.c
Expand Up @@ -1388,9 +1388,11 @@ linuxdvb_frontend_tune0
memset(&cmds, 0, sizeof(cmds));

/* Tune */
#define S2CMD(c, d)\
cmds[cmdseq.num].cmd = c;\
cmds[cmdseq.num++].u.data = d
#define S2CMD(c, d) do { \
cmds[cmdseq.num].cmd = c; \
cmds[cmdseq.num++].u.data = d; \
} while (0)

memset(&cmds, 0, sizeof(cmds));
S2CMD(DTV_DELIVERY_SYSTEM, TR(delsys, delsys_tbl, SYS_UNDEFINED));
S2CMD(DTV_FREQUENCY, freq);
Expand Down

0 comments on commit bd21995

Please sign in to comment.