GNOME Bugzilla – Bug 576582
A patch to enable the use of 'name' in Enum parameters
Last modified: 2009-03-25 12:11:03 UTC
Only decimal number can be used to set enum parameters, my patch let gst can accept enum value_name. It will be more friendly for users.
Created attachment 131268 [details] [review] The patch. Enable the use of enum name in enum parameters
Wow, that's some old code you are touching there. It would be nice if we can make those functions work with the flags too. There is code to convert an arbitrary string to a GValue that can then be used to set the object property.
commit 1bd7f964979ebd194c68f692d2e6b808c0628add Author: Wim Taymans <wim.taymans@collabora.co.uk> Date: Tue Mar 24 19:33:56 2009 +0100 gstutils: improve property set and convert code Use string deserialisation instead of custom parsing code to allow for all supported ways of specifying property values. fixes #576582.
Pretty good~ thanks greatly.