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

Luciana Fujii Pontello luciana at fujii.eti.br
Tue Feb 8 19:12:27 CET 2011


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.

Regards,

Luciana Fujii





More information about the gstreamer-devel mailing list