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 |
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 |
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 |
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 Hi techdev Depends from what you want to achieve. Mikl From: gstreamer-devel <[hidden email]> on behalf of ht techdev <[hidden email]> 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 |
Le 4 nov. 2016 12:42 PM, "ht techdev" <[hidden email]> a écrit : This is the symptoms of a reference leak. > _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Hi Could you kindly elaborate a bit, perhaps some debug suggestions. Cheers, From: gstreamer-devel [mailto:[hidden email]] On Behalf Of Nicolas Dufresne 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. > gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Le 5 nov. 2016 5:11 PM, "ht techdev" <[hidden email]> a écrit : 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, _______________________________________________ gstreamer-devel mailing list [hidden email] https://lists.freedesktop.org/mailman/listinfo/gstreamer-devel |
Free forum by Nabble | Edit this page |