<div dir="ltr"><div class="gmail_extra"><div class="gmail_signature" data-smartmail="gmail_signature">On Fri, Jan 6, 2017 at 4:34 AM, Sebastian Dröge <span dir="ltr"><<a href="mailto:sebastian@centricular.com" target="_blank">sebastian@centricular.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Thu, 2017-01-05 at 16:50 -0500, Stirling Westrup wrote:<br>
> I am writing a testcaps element who's purpose will be to regularly<br>
> cycle through a list of GstCaps structures at regular intervals, so<br>
> as to test pipeline renegotiation.<br>
><br>
> The main code seems pretty straight-forward, but I'm unsure how to<br>
> define a parameter type that accepts a list of caps. I'm thinking of<br>
> using something like '!' or '|' as an internal caps separator, and<br>
> going with that, but regardless, I can't find any documentation in<br>
> the glib or gstreamer manual on creating and parsing new parameter<br>
> types from the command line.<br>
<br>
</span>You could abuse GstCaps for that, and just pass caps with multiple<br>
structures in the property. And then iterate through those structures<br>
in your element.<br></blockquote><div><br></div><div>I could, but then I couldn't use the test framework to test GstCaps with multiple structures. I really do want a List-of-Caps, but it doesn't look like I can use an actual list as I doubt the current parser could handle a comma-separated list containing two elements each a GstCaps with multiple structures, unless there is some escaping mechanism I'm unaware of.<br><br></div><div>I just did a search through the documentation and although I know there used to be documentation on the string-serialization forms of lists, arrays and ranges, I can't find it anywhere.<br><br></div></div>
</div></div>