sdpmessage: fix multi statement macros

Wasn't playing nice with an if statement below.

Coverity 1139767
This commit is contained in:
Vincent Penquerc'h 2014-04-10 11:19:26 +01:00
parent dda777803c
commit 505c803765

View file

@ -2796,8 +2796,10 @@ gst_sdp_parse_line (SDPContext * c, gchar type, gchar * buffer)
gchar str[8192];
gchar *p = buffer;
#define READ_STRING(field) read_string (str, sizeof (str), &p); REPLACE_STRING (field, str)
#define READ_UINT(field) read_string (str, sizeof (str), &p); field = strtoul (str, NULL, 10)
#define READ_STRING(field) \
do { read_string (str, sizeof (str), &p); REPLACE_STRING (field, str); } while (0)
#define READ_UINT(field) \
do { read_string (str, sizeof (str), &p); field = strtoul (str, NULL, 10); } while (0)
switch (type) {
case 'v':