mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-02 12:32:29 +00:00
rtptransceiver: Store the SSRC of the current stream
Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1707>
This commit is contained in:
parent
7be09a5f22
commit
0fbbdc5734
2 changed files with 9 additions and 0 deletions
|
@ -265,6 +265,14 @@ gst_webrtcbin_sink_event (GstPad * pad, GstObject * parent, GstEvent * event)
|
|||
GST_DEBUG_OBJECT (parent,
|
||||
"On %" GST_PTR_FORMAT " checking negotiation? %u, caps %"
|
||||
GST_PTR_FORMAT, pad, check_negotiation, caps);
|
||||
|
||||
if (check_negotiation) {
|
||||
WebRTCTransceiver *trans = WEBRTC_TRANSCEIVER (wpad->trans);
|
||||
const GstStructure *s;
|
||||
|
||||
s = gst_caps_get_structure (caps, 0);
|
||||
gst_structure_get_uint (s, "ssrc", &trans->current_ssrc);
|
||||
}
|
||||
} else if (GST_EVENT_TYPE (event) == GST_EVENT_EOS) {
|
||||
check_negotiation = TRUE;
|
||||
}
|
||||
|
|
|
@ -39,6 +39,7 @@ struct _WebRTCTransceiver
|
|||
|
||||
TransportStream *stream;
|
||||
GstStructure *local_rtx_ssrc_map;
|
||||
guint current_ssrc;
|
||||
|
||||
/* Properties */
|
||||
GstWebRTCFECType fec_type;
|
||||
|
|
Loading…
Reference in a new issue