summaryrefslogtreecommitdiff
path: root/src/sdp.c
diff options
context:
space:
mode:
authorAlfred E. Heggestad <aeh@db.org>2014-02-22 17:25:01 +0100
committerAlfred E. Heggestad <aeh@db.org>2014-02-22 17:25:01 +0100
commit22a712f547e764006b0341b6bc939135e593129e (patch)
treef1f589d058f3590c643aaab8fbf0a134179203dd /src/sdp.c
parentb823b7d4481612b7047d7ad87911218893a2297b (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.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/sdp.c b/src/sdp.c
index 7a8ed29..8001253 100644
--- a/src/sdp.c
+++ b/src/sdp.c
@@ -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;