mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-19 14:56:36 +00:00
rtpsession: Emit "on-ssrc-validated" when validating by RTCP
Emit "on-ssrc-validated" if the SSRC is validated by receiving a RTCP SDES packet.
This commit is contained in:
parent
f95c30a413
commit
9f073459e0
1 changed files with 4 additions and 1 deletions
|
@ -1749,7 +1749,7 @@ rtp_session_process_sdes (RTPSession * sess, GstRTCPPacket * packet,
|
|||
i = 0;
|
||||
while (more_items) {
|
||||
guint32 ssrc;
|
||||
gboolean changed, created;
|
||||
gboolean changed, created, validated;
|
||||
RTPSource *source;
|
||||
GstStructure *sdes;
|
||||
|
||||
|
@ -1802,10 +1802,13 @@ rtp_session_process_sdes (RTPSession * sess, GstRTCPPacket * packet,
|
|||
/* takes ownership of sdes */
|
||||
changed = rtp_source_set_sdes_struct (source, sdes);
|
||||
|
||||
validated = !RTP_SOURCE_IS_ACTIVE (source);
|
||||
source->validated = TRUE;
|
||||
|
||||
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