rtpsession: avoid doing lip-sync in BYE

When we get a BYE packet, don't do lip-sync with the SR inside because some
senders have trouble constructing valid SR packets after BYE.
This commit is contained in:
Wim Taymans 2009-07-27 15:46:23 +02:00
parent b3b96c3063
commit ffe90f81a4

View file

@ -1869,6 +1869,8 @@ rtp_session_process_rtcp (RTPSession * sess, GstBuffer * buffer,
break; break;
case GST_RTCP_TYPE_BYE: case GST_RTCP_TYPE_BYE:
is_bye = TRUE; is_bye = TRUE;
/* don't try to attempt lip-sync anymore for streams with a BYE */
do_sync = FALSE;
rtp_session_process_bye (sess, &packet, &arrival); rtp_session_process_bye (sess, &packet, &arrival);
break; break;
case GST_RTCP_TYPE_APP: case GST_RTCP_TYPE_APP: