GNOME Bugzilla – Bug 642522
gstvalue.c does not include a deserialize function for uchar
Last modified: 2011-02-17 10:58:13 UTC
If a GstElement installs a property with g_param_spec_uchar(), every attempt to assign that property a value by passing <propertyname>=<propertyvalue> to gst-launch-0.10 command line fails with the error "Could not set property <propertyname> in element". gstvalue.c defines serialization and deserialization for many types, but uchar and guchar are not among them.
Example: element clmmenc (gst-plugins-good/ext/annodex/gstcmmlenc.c) installs property granule-shift with g_object_class_install_property (klass, GST_CMML_ENC_GRANULESHIFT, g_param_spec_uchar ("granule-shift", "Granuleshift", "The number of lower bits to use for partitioning a granule position", 0, 64, 32, G_PARAM_READWRITE | G_PARAM_CONSTRUCT | G_PARAM_STATIC_STRINGS));
Sigh, we really shouldn't have plugins with char/uchar-type properties. But since one exists and we can't change it...:
commit 3a744ca44230e397e49e056799b17fe9db91cc5f Author: Tim-Philipp Müller <tim.muller@collabora.co.uk> Date: Thu Feb 17 10:34:37 2011 +0000 value: add (de)serialisation function for uchar .. since we sadly have a plugin in -good that has a uchar property (cmmlenc) https://bugzilla.gnome.org/show_bug.cgi?id=642522 (skipping the 'char' case for now, don't think we have plugins that need that)