mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-09-09 13:48:55 +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;
|
i = 0;
|
||||||
while (more_items) {
|
while (more_items) {
|
||||||
guint32 ssrc;
|
guint32 ssrc;
|
||||||
gboolean changed, created;
|
gboolean changed, created, validated;
|
||||||
RTPSource *source;
|
RTPSource *source;
|
||||||
GstStructure *sdes;
|
GstStructure *sdes;
|
||||||
|
|
||||||
|
@ -1802,10 +1802,13 @@ rtp_session_process_sdes (RTPSession * sess, GstRTCPPacket * packet,
|
||||||
/* takes ownership of sdes */
|
/* takes ownership of sdes */
|
||||||
changed = rtp_source_set_sdes_struct (source, sdes);
|
changed = rtp_source_set_sdes_struct (source, sdes);
|
||||||
|
|
||||||
|
validated = !RTP_SOURCE_IS_ACTIVE (source);
|
||||||
source->validated = TRUE;
|
source->validated = TRUE;
|
||||||
|
|
||||||
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);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue