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:
Pascal Buhler 2010-08-24 13:54:58 +02:00 committed by Olivier Crête
parent 53c88ae33e
commit 58ef84846e

View file

@ -1939,10 +1939,16 @@ rtp_session_process_sdes (RTPSession * sess, GstRTCPPacket * packet,
validated = !RTP_SOURCE_IS_ACTIVE (source); validated = !RTP_SOURCE_IS_ACTIVE (source);
source->validated = TRUE; 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) if (created)
on_new_ssrc (sess, source); on_new_ssrc (sess, source);
if (validated)
on_ssrc_validated (sess, source);
if (changed) if (changed)
on_ssrc_sdes (sess, source); on_ssrc_sdes (sess, source);