diff options
author | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-08-30 22:07:24 +0200 |
---|---|---|
committer | Wim Taymans <wim.taymans@collabora.co.uk> | 2012-08-30 22:09:49 +0200 |
commit | cefbbb31c3306ec1ed003ded41e7c07971b56cec (patch) | |
tree | b924c1ad75e292e6d4b69469264709aab23c8011 | |
parent | 23fbc5e21ba40e9c7b80cfb7eeca38798f4668f2 (diff) |
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
-rw-r--r-- | gst/rtpmanager/rtpsession.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gst/rtpmanager/rtpsession.c b/gst/rtpmanager/rtpsession.c index 31fd6bde8..709614ff0 100644 --- a/gst/rtpmanager/rtpsession.c +++ b/gst/rtpmanager/rtpsession.c @@ -1454,6 +1454,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; |