Commit 23300e8c authored by Luchko Vladimir's avatar Luchko Vladimir Committed by Pekka Pessi

sdp: fix sessions compare

parent 9128bf36
......@@ -1190,7 +1190,7 @@ int sdp_session_cmp(sdp_session_t const *a, sdp_session_t const *b)
for (ab = a->sdp_bandwidths, bb = b->sdp_bandwidths;
ab || bb;
ab = ab->b_next, bb = bb->b_next)
if ((rv = sdp_bandwidth_cmp(a->sdp_bandwidths, b->sdp_bandwidths)))
if ((rv = sdp_bandwidth_cmp(ab, bb)))
return rv;
if ((rv = sdp_time_cmp(a->sdp_time, b->sdp_time)))
......@@ -1199,7 +1199,7 @@ int sdp_session_cmp(sdp_session_t const *a, sdp_session_t const *b)
return rv;
for (aa = a->sdp_attributes, ba = b->sdp_attributes;
aa || bb;
aa || ba;
aa = aa->a_next, ba = ba->a_next)
if ((rv = sdp_attribute_cmp(aa, ba)))
return rv;
......@@ -1497,14 +1497,14 @@ int sdp_media_cmp(sdp_media_t const *a, sdp_media_t const *b)
for (ab = a->m_bandwidths, bb = b->m_bandwidths;
ab || bb;
ab = ab->b_next, bb = bb->b_next)
if ((rv = sdp_bandwidth_cmp(a->m_bandwidths, b->m_bandwidths)))
if ((rv = sdp_bandwidth_cmp(ab, bb)))
return rv;
if ((rv = sdp_key_cmp(a->m_key, b->m_key)))
return rv;
for (aa = a->m_attributes, ba = b->m_attributes;
aa || bb;
aa || ba;
aa = aa->a_next, ba = ba->a_next)
if ((rv = sdp_attribute_cmp(aa, ba)))
return rv;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment