[gstreamer-bugs] [Bug 637300] [API] request pad based on caps
GStreamer (bugzilla.gnome.org)
bugzilla at gnome.org
Sun Jan 2 14:45:19 PST 2011
https://bugzilla.gnome.org/show_bug.cgi?id=637300
GStreamer | gstreamer (core) | git
--- Comment #10 from Tim-Philipp Müller <t.i.m at zen.co.uk> 2011-01-02 22:45:13 UTC ---
30-12-2010 11:05h
tim : wtay, any more thoughts on the dynamic request pad API?
https://bugzilla.gnome.org/show_bug.cgi?id=637300
tim : you said you changed your mind and prefer another version now? (Which
one was that exactly?)
wtay : (element, templ, name, caps)
wtay : an element can then use templ to find out what type of pad (by directly
comparing the pointers)
wtay : (like it is now)
wtay : and then create an instance of name and caps
tim : is it allowed to pass NULL template and NULL name then?
wtay : I would say no
wtay : you can pass NULL as the name
tim : ok
tim : mind if I paste this into the bug?
wtay : you can put NULL for caps
wtay : but you always need to provide a templ
wtay : (else you don't know the direction)
tim : right
wtay : the current gst_element_get_request_pad() is broken
wtay : it does not let you specify the template
wtay : it does some crazy stuff to find a template based on what name you
give..
tim : right
tim : from a user point of view finding + passing templates is rather
inconvenient though, but that could be solved via utility api I guess
wtay : a convenience API would be _get_request_pad_full (element,
template_name, name, caps)
wtay : shortcut for templ = _get_template (element, template_name);
_get_request_pad (element, templ, name, caps)
--
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