mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-24 17:20:36 +00:00
rtpsession: Number of active sources should be updated whenever the status of the source changes to active
Forward-ported by Olivier Crête https://bugzilla.gnome.org/show_bug.cgi?id=646965
This commit is contained in:
parent
53c88ae33e
commit
58ef84846e
1 changed files with 8 additions and 2 deletions
|
@ -1939,10 +1939,16 @@ rtp_session_process_sdes (RTPSession * sess, GstRTCPPacket * packet,
|
|||
validated = !RTP_SOURCE_IS_ACTIVE (source);
|
||||
source->validated = TRUE;
|
||||
|
||||
/* source became active */
|
||||
if (validated) {
|
||||
sess->stats.active_sources++;
|
||||
GST_DEBUG ("source: %08x became active, %d active sources", ssrc,
|
||||
sess->stats.active_sources);
|
||||
on_ssrc_validated (sess, source);
|
||||
}
|
||||
|
||||
if (created)
|
||||
on_new_ssrc (sess, source);
|
||||
if (validated)
|
||||
on_ssrc_validated (sess, source);
|
||||
if (changed)
|
||||
on_ssrc_sdes (sess, source);
|
||||
|
||||
|
|
Loading…
Reference in a new issue