[gst-devel] hi
Stefan Kost
ensonic at hora-obscura.de
Thu Jul 19 14:58:33 CEST 2007
hi,
please read about gobject in the api documentation (of glib /
gobject). this releases all resources whendestroying the element.
Stefan
Quoting Ananda Kumar B <anandakumarb at tataelxsi.co.in>:
> hi all,
>
> can anyone tell me the purpose of this function(gst_ximagesink_finalize
> (GObject * object) in ximagesink.c?
>
> static void
> gst_ximagesink_finalize (GObject * object)
> {
> GstXImageSink *ximagesink;
>
> ximagesink = GST_XIMAGESINK (object);
>
> if (ximagesink->display_name) {
> g_free (ximagesink->display_name);
> ximagesink->display_name = NULL;
> }
> if (ximagesink->par) {
> g_free (ximagesink->par);
> ximagesink->par = NULL;
> }
> if (ximagesink->x_lock) {
> g_mutex_free (ximagesink->x_lock);
> ximagesink->x_lock = NULL;
> }
> if (ximagesink->flow_lock) {
> g_mutex_free (ximagesink->flow_lock);
> ximagesink->flow_lock = NULL;
> }
> if (ximagesink->pool_lock) {
> g_mutex_free (ximagesink->pool_lock);
> ximagesink->pool_lock = NULL;
> }
>
> G_OBJECT_CLASS (parent_class)->finalize (object);
> }
>
>
>
> -------------------------------------------------------------------------
> This SF.net email is sponsored by DB2 Express
> Download DB2 Express C - the FREE version of DB2 express and take
> control of your XML. No limits. Just data. Click to get it now.
> http://sourceforge.net/powerbar/db2/
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
More information about the gstreamer-devel
mailing list