rtpsession: avoid doing lip-sync in BYE
authorWim Taymans <wim.taymans@collabora.co.uk>
Mon, 27 Jul 2009 13:46:23 +0000 (15:46 +0200)
committerTim-Philipp Müller <tim.muller@collabora.co.uk>
Tue, 11 Aug 2009 01:30:47 +0000 (02:30 +0100)
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.

gst/rtpmanager/rtpsession.c

index 9d73d51..3e17ec1 100644 (file)
@@ -1869,6 +1869,8 @@ rtp_session_process_rtcp (RTPSession * sess, GstBuffer * buffer,
         break;
       case GST_RTCP_TYPE_BYE:
         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);
         break;
       case GST_RTCP_TYPE_APP: