<div dir="ltr">Hi,<br><br>I'd like to parse GstCaps. It's pretty trivial:<br><br>GstDevice *device = ... // Get "Video/Source" devices from GstDeviceMonitor<br><br>GstCaps *devCaps = gst_device_get_caps(device);<br>uint size = gst_caps_get_size(devCaps);<br><br>for (uint i = 0; i < size; ++i) {<br>    GstStructure *s = gst_caps_get_structure(devCaps, i);<br>    GType framerate = gst_structure_get_field_type(s, "framerate");<br>    qDebug() << g_type_name(framerate);<br>      ...<br>}<br><br>Output: GstFraction or GstFractionRange<br><br>I can easily get a fraction with:<br><br>gst_structure_get_fraction(s, "framerate", &numerator, &denominator)<br><br>But there is no such method for a fraction range.<br><br>I can get a GValue for a fraction range:<br><br>GValue *fractionRange = gst_structure_get_value(s, "framerate");<br><br>But I don't know how to extract a range from it.<br><br>What did I miss?<br><br>Thanks,<br>Ilya</div>