[gst-devel] get target / parent of a proxypad
Sebastian Dröge
sebastian.droege at collabora.co.uk
Wed Mar 17 16:53:26 CET 2010
On Wed, 2010-03-17 at 07:18 -0800, ericcardmanNo3 wrote:
> /* HELP NEEDED HERE */
> GstIterator *pI = gst_pad_iterate_internal_links(pProxyPad);
> gpointer pElem;
> GstIteratorResult res;
> do
> {
> res = gst_iterator_next (pI,&pElem);
> g_print("§§§§ res is %u (pElem = 0x%x) \n",res,pElem);
> }while(res != GST_ITERATOR_DONE || res == GST_ITERATOR_ERROR);
>
> fb_fd=0;
> g_object_get(pElem,"name",&fb_fd,NULL);
> g_print("### pElem(name) is %s\n",fb_fd);
The iterator is iterating over GstPads and you get a new GstPad instance
after every successful gst_iterator_next() call. If _next() returns
something else than GST_ITERATOR_OK pElem will be NULL.
Please take a look at the GstIterator documentation on how to use it,
there's some sample code.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 198 bytes
Desc: This is a digitally signed message part
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20100317/5a939c4f/attachment.pgp>
More information about the gstreamer-devel
mailing list