Need Help Regarding SRTPDEC request_key_callback
Olivier Crête
olivier.crete at collabora.com
Wed Apr 8 12:52:25 UTC 2020
Hi,
On Wed, 2020-04-08 at 14:37 +0530, sameer wrote:
> The ssrc is not received in sdp. I have implemented the callback
> function to return capstring as mentioned in the documentation
> :
> static GstCaps request_key_callback (GstElement gstsrtpdec,
> guint ssrc, gpointer udata)
>
>
> The capstring returned is like:
> "
> 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
> "
>
>
> But after the callback invokes I am receiving following error:
> (recorder:32537): GLib-GObject-CRITICAL **: 14:18:06.064:
> g_object_unref: assertion 'G_IS_OBJECT (object)' failed
>
>
>
> ** (recorder:32537): CRITICAL **: 14:18:06.064:
> update_session_stream_from_caps: assertion 'GST_IS_SRTP_DEC
> (filter)' failed
>
>
> and the app crashes.
> Can anyone tell me what mistake I am making. I am not able to
> find much in the documentation or any examples.
>
>
>
You probably unref the srtpdec object somewhere where you shouldn't.
--
Olivier Crête
olivier.crete at collabora.com
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20200408/c09adee6/attachment.htm>
More information about the gstreamer-devel
mailing list