<html dir="ltr"><head>
<meta http-equiv="content-type" content="text/html; charset=UTF-8">
</head>
<body style="text-align:left; direction:ltr;"><div>Hi,</div><div><br></div><div>On Wed, 2020-04-08 at 14:37 +0530, sameer wrote:</div><blockquote type="cite" style="margin:0 0 0 .8ex; border-left:2px #729fcf solid;padding-left:1ex">
<p>The ssrc is not received in sdp. I have implemented the callback
function to return capstring as mentioned in the <a moz-do-not-send="true" href="https://gstreamer.freedesktop.org/data/doc/gstreamer/head/gst-plugins-bad/html/gst-plugins-bad-plugins-srtpdec.html">documentation</a>
:</p>
<p><b>static GstCaps request_key_callback (GstElement gstsrtpdec,
guint ssrc, gpointer udata) </b><br>
</p>
<p>The capstring returned is like:</p>
<p><b>"
application/x-srtp,channels=(int)1,media=(string)audio,payload=(int)0,clock-rate=(int)8000,encoding-name=(string)PCMU,ssrc=(uint)1932929554,srtp-key=(buffer)4d73554e564e334354466141365042324168614444436c4a456a754a497673747a354e5961694d5a,srtp-cipher=(string)aes-128-icm,srtp-auth=(string)hmac-sha1-32,srtcp-cipher=(string)aes-128-icm,srtcp-auth=(string)hmac-sha1-32,roc=(uint)0
"</b><b><br>
</b></p>
<p>But after the callback invokes I am receiving following error:</p>
<p><b>(recorder:32537): GLib-GObject-CRITICAL **: 14:18:06.064:
g_object_unref: assertion 'G_IS_OBJECT (object)' failed</b><b><br>
</b><b><br>
</b><b>** (recorder:32537): CRITICAL **: 14:18:06.064:
update_session_stream_from_caps: assertion 'GST_IS_SRTP_DEC
(filter)' failed</b><b><br>
</b></p>
<p>and the app crashes.</p>
<p>Can anyone tell me what mistake I am making. I am not able to
find much in the documentation or any examples.<br>
</p>
</blockquote><div><br></div><div>You probably unref the srtpdec object somewhere where you shouldn't.</div><div><br></div><div><span><pre><pre>-- <br></pre>Olivier CrĂȘte
olivier.crete@collabora.com
</pre></span></div></body></html>