mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 15:08:53 +00:00
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:
parent
4a200b670f
commit
5b394385b9
1 changed files with 4 additions and 0 deletions
|
@ -1389,6 +1389,10 @@ obtain_source (RTPSession * sess, guint32 ssrc, gboolean * created,
|
||||||
if (check_collision (sess, source, arrival, rtp)) {
|
if (check_collision (sess, source, arrival, rtp)) {
|
||||||
return NULL;
|
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 */
|
/* update last activity */
|
||||||
source->last_activity = arrival->current_time;
|
source->last_activity = arrival->current_time;
|
||||||
|
|
Loading…
Reference in a new issue