[gst-devel] Using gst_object_unref

liJin lijinshyam at gmail.com
Thu Sep 23 17:53:33 CEST 2010


Great ...ThankS...[?]

On Thu, Sep 23, 2010 at 9:06 PM, Tim-Philipp Müller <t.i.m at zen.co.uk> wrote:

> On Thu, 2010-09-23 at 20:46 +0530, liJin wrote:
>
> >    I just confused about the "Hello World " example in the gstreamer
> > manual.  I can see a pipeline and some elements are created in code.
> > In the end the  pipeline is unrefed , using the method
> > gst_object_unref(pipeline). What what about the elements we
> > created...?  Its there and the reference count of the elements doesn't
> > seems decremented....
> >
> > In chapter 5.2 . its says we need to use gst-object_unref  for
> > elements also
>
> if you use
>
>  gst_bin_add (bin_or_pipeline, element);
>
> then the bin/pipeline will take ownership of the element (if it is a
> newly-created element) and will take care of freeing it when the
> pipeline is freed. Also see
>
>
> http://gstreamer.freedesktop.org/data/doc/gstreamer/head/gstreamer/html/GstObject.html#GstObject.description
>
>
>  Cheers
>  -Tim
>
>
>
> ------------------------------------------------------------------------------
> Nokia and AT&T present the 2010 Calling All Innovators-North America
> contest
> Create new apps & games for the Nokia N8 for consumers in  U.S. and Canada
> $10 million total in prizes - $4M cash, 500 devices, nearly $6M in
> marketing
> Develop with Nokia Qt SDK, Web Runtime, or Java and Publish to Ovi Store
> http://p.sf.net/sfu/nokia-dev2dev
> _______________________________________________
> gstreamer-devel mailing list
> gstreamer-devel at lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100923/10edbe15/attachment.htm>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: image/png
Size: 569 bytes
Desc: not available
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100923/10edbe15/attachment.png>


More information about the gstreamer-devel mailing list