gstrtcweb nicetransport enquire

classic Classic list List threaded Threaded
2 messages Options
Reply | Threaded
Open this post in threaded view
|

gstrtcweb nicetransport enquire

Michael Nazzareno Trimarchi
Hi

We are working on an application using gstwebrtc plugin but we have a
problem that NiceAgent reference counter
does not go to 0 so sockets remain and they are not disposed of.

static void
gst_webrtc_nice_transport_finalize (GObject * object)
{
  GstWebRTCNiceTransport *nice = GST_WEBRTC_NICE_TRANSPORT (object);
  GstWebRTCICETransport *ice = GST_WEBRTC_ICE_TRANSPORT (object);

>>>  gst_object_unref (GST_OBJECT (ice->src));
>>>  gst_object_unref (GST_OBJECT (ice->sink));

I have added those two because I don't find where the src and sink
object are unref.


  gst_object_unref (nice->stream);

  G_OBJECT_CLASS (parent_class)->finalize (object);
}

Problem on reference on NiceAgent on plugin remains. Can someone point
where this increment can happen?

Michael
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gstrtcweb nicetransport enquire

Michael Nazzareno Trimarchi
Hi

Found some problem on libnice version that I'm using, I will try to
bump it and keep posted

Michael

On Fri, Jan 8, 2021 at 10:20 AM Michael Nazzareno Trimarchi
<[hidden email]> wrote:

>
> Hi
>
> We are working on an application using gstwebrtc plugin but we have a
> problem that NiceAgent reference counter
> does not go to 0 so sockets remain and they are not disposed of.
>
> static void
> gst_webrtc_nice_transport_finalize (GObject * object)
> {
>   GstWebRTCNiceTransport *nice = GST_WEBRTC_NICE_TRANSPORT (object);
>   GstWebRTCICETransport *ice = GST_WEBRTC_ICE_TRANSPORT (object);
>
> >>>  gst_object_unref (GST_OBJECT (ice->src));
> >>>  gst_object_unref (GST_OBJECT (ice->sink));
>
> I have added those two because I don't find where the src and sink
> object are unref.
>
>
>   gst_object_unref (nice->stream);
>
>   G_OBJECT_CLASS (parent_class)->finalize (object);
> }
>
> Problem on reference on NiceAgent on plugin remains. Can someone point
> where this increment can happen?
>
> Michael



--
Michael Nazzareno Trimarchi
Amarula Solutions BV
COO Co-Founder
Cruquiuskade 47 Amsterdam 1018 AM NL
T. +31(0)851119172
M. +39(0)3479132170
[`as] https://www.amarulasolutions.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel