[gstreamer-bugs] [Bug 610366] [gstcollectpads][doc] Add a reminder for 'data' doc

GStreamer (bugzilla.gnome.org) bugzilla at gnome.org
Fri Feb 19 11:57:17 PST 2010


https://bugzilla.gnome.org/show_bug.cgi?id=610366
  GStreamer | gstreamer (core) | git

--- Comment #4 from Thiago Sousa Santos <thiago.sousa.santos at collabora.co.uk> 2010-02-19 19:57:15 UTC ---
(In reply to comment #3)
> Same goes for mxfmux. It even sorts the collectpads data list ;)
> 
> What's the correct way for iterating over it? Other than storing your own copy
> of the list?

I don't think there is a way :(

> 
> And why are there not all pads in the last all the time? Can't this be fixed?

If you look at _add_pad_full(), the pads are added to a private list. They are
only added to the 'data' list when _check_pads_unlocked() is called.

Apparently on the collected function it is safe to iterate them. But I'm having
problems in qtmux when trying to iterate them at some other points (like state
changes).

Perhaps my docs commit should be update to tell people it is safe to iterate on
the collected callback.

-- 
Configure bugmail: https://bugzilla.gnome.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the QA contact for the bug.
You are the assignee for the bug.




More information about the Gstreamer-bugs mailing list