[gst-devel] more caps

Benjamin Otte in7y118 at public.uni-hamburg.de
Thu Dec 25 06:31:00 CET 2003


On Thu, 25 Dec 2003, Ronald Bultje wrote:

> The only 'right' fix seems to be to use a src_getcaps function already.
> I really dislike this, but I'll try it out and give a note on my
> progress this afternoon.
>
A src_getcaps function is really easy though. Save the caps somewhere in
your element and return those when they are set or the template's caps
otherwise.
gst_pad_Try_set_caps just doesn't work with renego.

> I didn't get anywhere yet with gst_pad_get_allowed_caps() or
> GST_PAD_CAPS(), but I'll look at that too.
>
Implement gst_pad_get_current_caps and let it return pad->link->caps or
NULL if those aren't available. Let David fix that function to his
liking once he's back.
I dunno if he want it to return "best possible caps" or "current caps".
g_object_get (pad, "caps", &caps, NULL) needs fixage, too.

Benjamin





More information about the gstreamer-devel mailing list