How to get a multi-field from caps
Alicia Romero
alromor84 at gmail.com
Wed Nov 5 07:13:58 PST 2014
Hi List,
I have a problem getting a field from a capability if the field has
multiple values.
One example would be I have this capability:
video/x-raw, format=(string)YUY2, width=(int)960, height=(int)720,
pixel-aspect-ratio=(fraction)1/1, interlace-mode=(string)progressive,
framerate=(fraction){ 15/1, 10/1, 5/1 };
And I want to get the framerate:
gint *num, *denom;
GstStructure *str = gst_caps_get_structure (caps, i);
[...]
gst_structure_get_fraction (str, "framerate", num, denom);
The problem is that I only get the last value 5/1 and not all the values.
Any idea how can I do that?
Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.freedesktop.org/archives/gstreamer-devel/attachments/20141105/8723479b/attachment.html>
More information about the gstreamer-devel
mailing list