[gst-devel] New pipeline parsing has landed.
Benjamin Otte
in7y118 at public.uni-hamburg.de
Fri Apr 11 03:38:12 CEST 2003
On Thu, 10 Apr 2003, David Schleef wrote:
> I think a lot of people (including myself) don't have a clear
> knowledge of how to do caps negotiation optimally. It's pretty
> clear how to make it work in simple cases, but there's no
> policy or guideline for making sure all the corner cases are
> handled gracefully. This could be one of our problems with
> getting autoplugging to work nicely.
>
This shouldn't be too hard to do. If you support multiple capabilities you
have 2 options:
1) quick and dirty: call gst_pad_try_set_caps with every caps you
support (from best to worst ideally) until it returns TRUE.
2) query via gst_pad_get_allowed_caps what caps are allowed and then do 1)
with only the allowed caps.
You can have a look at gst-plugins/ext/hermes/gstcolorspace.c which does
something like that, if you want to implement this in some element.
Benjamin
More information about the gstreamer-devel
mailing list