After an evaluation, GNOME has moved from Bugzilla to GitLab. Learn more about GitLab.
No new issues can be reported in GNOME Bugzilla anymore.
To report an issue in a GNOME project, go to GNOME GitLab.
Do not go to GNOME Gitlab for: Bluefish, Doxygen, GnuCash, GStreamer, java-gnome, LDTP, NetworkManager, Tomboy.
Bug 732162 - gst_caps_new_simple: Does not support caps features in name
gst_caps_new_simple: Does not support caps features in name
Status: RESOLVED WONTFIX
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other All
: Normal normal
: NONE
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2014-06-24 14:42 UTC by Robert Swain
Modified: 2016-05-22 17:45 UTC
See Also:
GNOME target: ---
GNOME version: ---



Description Robert Swain 2014-06-24 14:42:37 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. :)
Comment 1 Tim-Philipp Müller 2014-06-24 14:50:47 UTC
I think this is the right behaviour actually..
Comment 2 Sebastian Dröge (slomo) 2014-06-24 15:14:39 UTC
Maybe a gst_caps_new_not_so_simple(structure_name, capsfeatures, ...)?
Comment 3 Luis de Bethencourt 2014-10-06 15:37:28 UTC
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.
Comment 4 Olivier Crête 2014-10-06 17:39:11 UTC
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.
Comment 5 Tim-Philipp Müller 2016-04-17 17:27:19 UTC
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?
Comment 6 Tim-Philipp Müller 2016-05-22 17:45:17 UTC
Please feel free to re-open with patches, if anyone is interested enough :)