session: also stop probatation on existing sources
authorWim Taymans <wim.taymans@collabora.co.uk>
Thu, 30 Aug 2012 20:07:24 +0000 (22:07 +0200)
committerWim Taymans <wim.taymans@collabora.co.uk>
Thu, 30 Aug 2012 20:07:24 +0000 (22:07 +0200)
Receiving an RTCP packet should also stop probation on sources we have seen
before.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=683065

gst/rtpmanager/rtpsession.c

index f008ef7..e3fec66 100644 (file)
@@ -1389,6 +1389,10 @@ obtain_source (RTPSession * sess, guint32 ssrc, gboolean * created,
     if (check_collision (sess, source, arrival, rtp)) {
       return NULL;
     }
+    /* Receiving RTCP packets of an SSRC is a strong indication that we
+     * are dealing with a valid source. */
+    if (!rtp)
+      g_object_set (source, "probation", 0, NULL);
   }
   /* update last activity */
   source->last_activity = arrival->current_time;