Plugin Dispose & Finalize

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

Plugin Dispose & Finalize

HtGst

Hi

Just wondering if these methods need to implemented if I am using GstVideoEncoder base class?

Cheers,


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

Re: Plugin Dispose & Finalize

Mikl

Hi techdev


Depends from what you want to achieve.


Mikl


From: gstreamer-devel <[hidden email]> on behalf of ht techdev <[hidden email]>
Sent: Thursday, November 3, 2016 8:18:57 PM
To: 'Discussion of the development of and with GStreamer'
Subject: Plugin Dispose & Finalize
 

Hi

Just wondering if these methods need to implemented if I am using GstVideoEncoder base class?

Cheers,


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

Re: Plugin Dispose & Finalize

Sebastian Dröge-3
In reply to this post by HtGst
On Thu, 2016-11-03 at 12:18 -0700, ht techdev wrote:
> Hi
> Just wondering if these methods need to implemented if I am using
> GstVideoEncoder base class?

Check the GObject documentation about what they mean, but basically you
will need them in this specific context if you allocate any resources
in the instance initialization or cache anything that needs to be
freed. However most things in GStreamer elements are to be freed during
state changes, symmetric to where they were allocated.

--
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel

signature.asc (949 bytes) Download Attachment
Reply | Threaded
Open this post in threaded view
|

RE: Plugin Dispose & Finalize

HtGst
In reply to this post by Mikl

Hi

Well it’s more for  clarification purposes. I am looking at a piece of code that derives from GstVideoEncoder, which also implements _finalize callback. However, I don’t see it being called when pipeline goes to NULL or when pipeline is unreferenced.

Cheers,

 

From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Michael Yarochkin
Sent: Friday, November 04, 2016 1:44 AM
To: 'Discussion of the development of and with GStreamer'
Subject: Re: Plugin Dispose & Finalize

 

Hi techdev

 

Depends from what you want to achieve.

 

Mikl


From: gstreamer-devel <[hidden email]> on behalf of ht techdev <[hidden email]>
Sent: Thursday, November 3, 2016 8:18:57 PM
To: 'Discussion of the development of and with GStreamer'
Subject: Plugin Dispose & Finalize

 

Hi

Just wondering if these methods need to implemented if I am using GstVideoEncoder base class?

Cheers,


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

RE: Plugin Dispose & Finalize

Nicolas Dufresne-5

Le 4 nov. 2016 12:42 PM, "ht techdev" <[hidden email]> a écrit :
>
> Hi
>
> Well it’s more for  clarification purposes. I am looking at a piece of code that derives from GstVideoEncoder, which also implements _finalize callback. However, I don’t see it being called when pipeline goes to NULL or when pipeline is unreferenced.

This is the symptoms of a reference leak.

>
> Cheers,
>
>  
>
> From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Michael Yarochkin
> Sent: Friday, November 04, 2016 1:44 AM
>
> To: 'Discussion of the development of and with GStreamer'
> Subject: Re: Plugin Dispose & Finalize
>
>  
>
> Hi techdev
>
>  
>
> Depends from what you want to achieve.
>
>  
>
> Mikl
>
> ________________________________
>
> From: gstreamer-devel <[hidden email]> on behalf of ht techdev <[hidden email]>
> Sent: Thursday, November 3, 2016 8:18:57 PM
> To: 'Discussion of the development of and with GStreamer'
> Subject: Plugin Dispose & Finalize
>
>  
>
> Hi
>
> Just wondering if these methods need to implemented if I am using GstVideoEncoder base class?
>
> Cheers,
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


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

RE: Plugin Dispose & Finalize

HtGst

Hi

Could you kindly elaborate a bit, perhaps some debug suggestions.

Cheers,

 

From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Nicolas Dufresne
Sent: Saturday, November 05, 2016 7:55 AM
To: Discussion of the development of and with GStreamer
Subject: RE: Plugin Dispose & Finalize

 

Le 4 nov. 2016 12:42 PM, "ht techdev" <[hidden email]> a écrit :


>
> Hi
>
> Well it’s more for  clarification purposes. I am looking at a piece of code that derives from GstVideoEncoder, which also implements _finalize callback. However, I don’t see it being called when pipeline goes to NULL or when pipeline is unreferenced.

This is the symptoms of a reference leak.

>
> Cheers,
>
>  
>
> From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Michael Yarochkin
> Sent: Friday, November 04, 2016 1:44 AM
>
> To: 'Discussion of the development of and with GStreamer'
> Subject: Re: Plugin Dispose & Finalize
>
>  
>
> Hi techdev
>
>  
>
> Depends from what you want to achieve.
>
>  
>
> Mikl
>
> ________________________________
>
> From: gstreamer-devel <[hidden email]> on behalf of ht techdev <[hidden email]>
> Sent: Thursday, November 3, 2016 8:18:57 PM
> To: 'Discussion of the development of and with GStreamer'
> Subject: Plugin Dispose & Finalize
>
>  
>
> Hi
>
> Just wondering if these methods need to implemented if I am using GstVideoEncoder base class?
>
> Cheers,
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>

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

RE: Plugin Dispose & Finalize

Nicolas Dufresne-5

Le 5 nov. 2016 5:11 PM, "ht techdev" <[hidden email]> a écrit :
>
> Hi
>
> Could you kindly elaborate a bit, perhaps some debug suggestions.
>

Method will vary depending on GStreamer version. You could start with valgrind using GStreamer suppression file.

https://cgit.freedesktop.org/gstreamer/common/plain/gst.supp

> Cheers,
>
>  
>
> From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Nicolas Dufresne
> Sent: Saturday, November 05, 2016 7:55 AM
>
> To: Discussion of the development of and with GStreamer
> Subject: RE: Plugin Dispose & Finalize
>
>  
>
> Le 4 nov. 2016 12:42 PM, "ht techdev" <[hidden email]> a écrit :
> >
> > Hi
> >
> > Well it’s more for  clarification purposes. I am looking at a piece of code that derives from GstVideoEncoder, which also implements _finalize callback. However, I don’t see it being called when pipeline goes to NULL or when pipeline is unreferenced.
>
> This is the symptoms of a reference leak.
>
> >
> > Cheers,
> >
> >  
> >
> > From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Michael Yarochkin
> > Sent: Friday, November 04, 2016 1:44 AM
> >
> > To: 'Discussion of the development of and with GStreamer'
> > Subject: Re: Plugin Dispose & Finalize
> >
> >  
> >
> > Hi techdev
> >
> >  
> >
> > Depends from what you want to achieve.
> >
> >  
> >
> > Mikl
> >
> > ________________________________
> >
> > From: gstreamer-devel <[hidden email]> on behalf of ht techdev <[hidden email]>
> > Sent: Thursday, November 3, 2016 8:18:57 PM
> > To: 'Discussion of the development of and with GStreamer'
> > Subject: Plugin Dispose & Finalize
> >
> >  
> >
> > Hi
> >
> > Just wondering if these methods need to implemented if I am using GstVideoEncoder base class?
> >
> > Cheers,
> >
> >
> > _______________________________________________
> > gstreamer-devel mailing list
> > [hidden email]
> > https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
> >
>
>
> _______________________________________________
> gstreamer-devel mailing list
> [hidden email]
> https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel
>


_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel