From: Juho Vähä-Herttua Date: Sun, 31 Mar 2013 11:13:36 +0000 (+0300) Subject: Only accept first rtpmap and fmtp (assume they are for audio) X-Git-Tag: upstream/0.9.0~4^2~40 X-Git-Url: https://git.piment-noir.org/?a=commitdiff_plain;h=c8729c312c54aaf09b9d70e3b19d28ebbdd7aa3e;p=deb_shairplay.git Only accept first rtpmap and fmtp (assume they are for audio) --- diff --git a/src/lib/sdp.c b/src/lib/sdp.c index ecd6214..b39661c 100644 --- a/src/lib/sdp.c +++ b/src/lib/sdp.c @@ -75,9 +75,9 @@ parse_sdp_line(sdp_t *sdp, char *line) if (!value) break; *(value++) = '\0'; - if (!strcmp(key, "rtpmap")) { + if (!strcmp(key, "rtpmap") && !sdp->rtpmap) { sdp->rtpmap = value; - } else if (!strcmp(key, "fmtp")) { + } else if (!strcmp(key, "fmtp") && !sdp->fmtp) { sdp->fmtp = value; } else if (!strcmp(key, "rsaaeskey")) { sdp->rsaaeskey = value;