[gst-devel] Should element's iterated pads be unref'ed?

Alexey Chernov 4ernov at gmail.com
Fri Feb 11 21:11:25 CET 2011


On Tuesday 08 February 2011 21:12:27 you wrote:
> On Tue, 2011-02-08 at 15:26 +0300, 4ernov wrote:
> > What could be the problem? Maybe I should't unref pads after usage?
> > But in all the code snippets I've seen there's unref for every used
> > pad.
> 
> You probably need to check the result of gst_iterator_next right after
> you call it. Even if the result is DONE or ERROR you are still using the
> pad and unreferring it. Just use the example of GstIterator.

Thanks, Luciana. I searched for an example code with little success so you 
reference is quite helpful. The problem actually went away as I cleaned and 
recompiled the application but I'd better find out what the reason was.

Thank you.

> 
> Regards,
> 
> Luciana Fujii
_______________________________________________
gstreamer-devel mailing list
gstreamer-devel at lists.freedesktop.org
http://lists.freedesktop.org/mailman/listinfo/gstreamer-devel



More information about the gstreamer-devel mailing list