[gst-devel] fixate functions with non-single caps
David Schleef
ds at schleef.org
Thu Aug 12 16:09:12 CEST 2004
On Thu, Aug 12, 2004 at 11:41:38PM +0200, Thomas Vander Stichele wrote:
> On Thu, 2004-08-12 at 21:49, David Schleef wrote:
> > On Thu, Aug 12, 2004 at 05:17:16PM +0200, Thomas Vander Stichele wrote:
> > > Hi,
> > >
> > > while trying to fix some fixation bugs, I noticed a bunch of plugins
> > > either just don't fixate when there is more than one member in the caps,
> > > or they only copy the first caps member then fixate that, dropping the
> > > others.
> > >
> > > Is this supposed to be this way ?
> >
> > Yes. It's a choice, but not a policy.
>
> Heh. Could you be slightly more verbose ? :) Does this mean that the
> element writer was too lazy, that it has a specific purpose, or that it
> is completely random ?
>
> To me it seems weird that fixation should fail just because there are
> multiple caps. Why not go over each of them, and return as soon as
> something was fixated ?
Returning NULL is not a failure, it means "no preference". It
just means that the element has no preference at that stage, which
makes complete sense, because about the only non-complicated thing
it can do is exactly what the core does -- chooses the first
structure from the caps.
dave...
More information about the gstreamer-devel
mailing list