diff options
author | Alfred E. Heggestad <aeh@db.org> | 2014-02-22 17:25:01 +0100 |
---|---|---|
committer | Alfred E. Heggestad <aeh@db.org> | 2014-02-22 17:25:01 +0100 |
commit | 22a712f547e764006b0341b6bc939135e593129e (patch) | |
tree | f1f589d058f3590c643aaab8fbf0a134179203dd /src/sdp.c | |
parent | b823b7d4481612b7047d7ad87911218893a2297b (diff) |
re api changes:
- sip_param_decode() renamed to msg_param_decode()
- use msg_ctype_cmp() to check for Content-Type
Diffstat (limited to 'src/sdp.c')
-rw-r--r-- | src/sdp.c | 8 |
1 files changed, 4 insertions, 4 deletions
@@ -145,18 +145,18 @@ static void decode_part(const struct pl *part, struct mbuf *mb) /** * Decode a multipart/mixed message and find the part with application/sdp */ -int sdp_decode_multipart(const struct pl *ctype, struct mbuf *mb) +int sdp_decode_multipart(const struct pl *ctype_prm, struct mbuf *mb) { struct pl bnd, s, e, p; char expr[64]; int err; - if (!ctype || !mb) + if (!ctype_prm || !mb) return EINVAL; /* fetch the boundary tag, excluding quotes */ - err = re_regex(ctype->p, ctype->l, - "multipart/mixed;[ \t]*boundary=[~]+", NULL, &bnd); + err = re_regex(ctype_prm->p, ctype_prm->l, + "boundary=[~]+", &bnd); if (err) return err; |