session: also stop probatation on existing sources

Receiving an RTCP packet should also stop probation on sources we have seen
before.

Fixes https://bugzilla.gnome.org/show_bug.cgi?id=683065
This commit is contained in:
Wim Taymans 2012-08-30 22:07:24 +02:00
parent 4a200b670f
commit 5b394385b9

View 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;