GNOME Bugzilla – Bug 732162
gst_caps_new_simple: Does not support caps features in name
Last modified: 2016-05-22 17:45:17 UTC
I would have expected gst_caps_new_simple("video/x-raw(memory:GLMemory)") to work, but it hits a structure name validation assertion. This could be a feature request if you think it is a reasonable expectation. :)
I think this is the right behaviour actually..
Maybe a gst_caps_new_not_so_simple(structure_name, capsfeatures, ...)?
So what is the consensus? Right behaviour or funny sounding new function? :) Just wondering in case there is work to be done or if the bug should be closed.
maybe should be: gst_caps_new_simple_with_features("video/x-raw", "feature1", "feature", NULL, "prop1", G_TYPE_X, "value1", "prop2", G_TYPE_Y", "value2", NULL); Although this is clearly not bindable. So for a simple bindable API, these are possible: gst_caps_add_features_simple (GstCaps *caps, guint index, const gchar *feature_name); which adds another item to the features of the specified structure gst_caps_set_features_simple (GstCaps *caps, guint index, const gchar *feature_name); which just re-set the GstCapsFeature object.
Do we really need a new function? No one seems bothered enough to come up with patches and tess, so until then perhaps we should just close this as NOTABUG?
Please feel free to re-open with patches, if anyone is interested enough :)