Multi-Caps input parameter for an element?

Sebastian Dröge sebastian at centricular.com
Fri Jan 6 09:34:45 UTC 2017


On Thu, 2017-01-05 at 16:50 -0500, Stirling Westrup wrote:
> I am writing a testcaps element who's purpose will be to regularly
> cycle through a list of GstCaps structures at regular intervals, so
> as to test pipeline renegotiation.
> 
> The main code seems pretty straight-forward, but I'm unsure how to
> define a parameter type that accepts a list of caps. I'm thinking of
> using something like '!' or '|' as an internal caps separator, and
> going with that, but regardless, I can't find any documentation in
> the glib or gstreamer manual on creating and parsing new parameter
> types from the command line.

You could abuse GstCaps for that, and just pass caps with multiple
structures in the property. And then iterate through those structures
in your element.

Or use a property of type GST_TYPE_LIST.

-- 
Sebastian Dröge, Centricular Ltd · http://www.centricular.com
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 963 bytes
Desc: This is a digitally signed message part
URL: <https://lists.freedesktop.org/archives/gstreamer-devel/attachments/20170106/a8b095e0/attachment-0001.sig>


More information about the gstreamer-devel mailing list