gst caps

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

gst caps

Vineeth-2
Hello all,
  I am a newbie to gst ( and gobject ). While writing a gst app and debugging a refcount problem, I see that for GstCaps, gst_caps_unref() is used, while for
  other objects like GstElement, gst_object_unref() is used. Why is it like this, doesn't every object inherit from GObject by default? Pls share your insights.

Br,
nv

------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel
Reply | Threaded
Open this post in threaded view
|

Re: gst caps

Tim-Philipp Müller-2
On Mon, 2010-03-01 at 13:55 +0530, vineeth wrote:

>   I am a newbie to gst ( and gobject ). While writing a gst app and
> debugging a refcount problem, I see that for GstCaps, gst_caps_unref()
> is used, while for
>   other objects like GstElement, gst_object_unref() is used. Why is it
> like this, doesn't every object inherit from GObject by default? Pls
> share your insights.

GstCaps is more of a refcounted C structure, it's not supposed to be
subclassed (outside of GStreamer), so not a full object for a reason.

Other object types used in GStreamer are GstMiniObjects (buffers,
events) and GObjects (elements, etc.).

Cheers
 -Tim



------------------------------------------------------------------------------
Download Intel® Parallel Studio Eval
Try the new software tools for yourself. Speed compiling, find bugs
proactively, and fine-tune applications for parallel performance.
See why Intel Parallel Studio got high marks during beta.
http://p.sf.net/sfu/intel-sw-dev
_______________________________________________
gstreamer-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/gstreamer-devel