[gst-devel] Freeing application data from message

Robert Powell rob at yorba.org
Mon Jul 5 18:10:46 CEST 2010


On Mon, Jul 5, 2010 at 5:11 AM, Albert Costa <costa_albert at yahoo.fr> wrote:

>
>   MyInfo* myinfo = new MyInfo;
>   /* do stuff with myinfo, including allocating internal data */
>
>   structure = gst_structure_new("FILTERMESSAGE",
>     "info", G_TYPE_POINTER, (gpointer)myinfo,
>     NULL);
>   msg = gst_message_new_application(NULL,structure);
>   gst_bus_post (bus, msg);
>
>
>
According to the docs, gst_message_new_application will take ownership of
the structure, so you should release it after you call
gst_message_new_application.

Hope that helps.

Rob
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100705/79ad4054/attachment.htm>


More information about the gstreamer-devel mailing list