mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 09:40:37 +00:00
rtspclientsink: add rtx ssrc to mikey's crypto sessions
https://bugzilla.gnome.org/show_bug.cgi?id=794813
This commit is contained in:
parent
c683cadcdf
commit
7894328029
1 changed files with 5 additions and 1 deletions
|
@ -3711,13 +3711,17 @@ gst_rtsp_client_sink_stream_make_keymgmt (GstRTSPClientSink * sink,
|
||||||
|
|
||||||
mikey_msg = gst_mikey_message_new_from_caps (context->srtcpparams);
|
mikey_msg = gst_mikey_message_new_from_caps (context->srtcpparams);
|
||||||
if (mikey_msg) {
|
if (mikey_msg) {
|
||||||
guint send_ssrc;
|
guint send_ssrc, send_rtx_ssrc;
|
||||||
|
const GstStructure *s = gst_caps_get_structure (context->srtcpparams, 0);
|
||||||
|
|
||||||
/* add policy '0' for our SSRC */
|
/* add policy '0' for our SSRC */
|
||||||
gst_rtsp_stream_get_ssrc (context->stream, &send_ssrc);
|
gst_rtsp_stream_get_ssrc (context->stream, &send_ssrc);
|
||||||
GST_LOG_OBJECT (sink, "Stream %p ssrc %x", context->stream, send_ssrc);
|
GST_LOG_OBJECT (sink, "Stream %p ssrc %x", context->stream, send_ssrc);
|
||||||
gst_mikey_message_add_cs_srtp (mikey_msg, 0, send_ssrc, 0);
|
gst_mikey_message_add_cs_srtp (mikey_msg, 0, send_ssrc, 0);
|
||||||
|
|
||||||
|
if (gst_structure_get_uint (s, "rtx-ssrc", &send_rtx_ssrc))
|
||||||
|
gst_mikey_message_add_cs_srtp (mikey_msg, 0, send_rtx_ssrc, 0);
|
||||||
|
|
||||||
base64 = gst_mikey_message_base64_encode (mikey_msg);
|
base64 = gst_mikey_message_base64_encode (mikey_msg);
|
||||||
gst_mikey_message_unref (mikey_msg);
|
gst_mikey_message_unref (mikey_msg);
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue