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 576582 - A patch to enable the use of 'name' in Enum parameters
A patch to enable the use of 'name' in Enum parameters
Status: RESOLVED FIXED
Product: GStreamer
Classification: Platform
Component: gstreamer (core)
git master
Other Linux
: Normal normal
: 0.10.23
Assigned To: GStreamer Maintainers
GStreamer Maintainers
Depends on:
Blocks:
 
 
Reported: 2009-03-24 15:41 UTC by Charles Wang
Modified: 2009-03-25 12:11 UTC
See Also:
GNOME target: ---
GNOME version: ---


Attachments
The patch. (843 bytes, patch)
2009-03-24 15:43 UTC, Charles Wang
none Details | Review

Description Charles Wang 2009-03-24 15:41:56 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.
Comment 1 Charles Wang 2009-03-24 15:43:28 UTC
Created attachment 131268 [details] [review]
The patch.

Enable the use of enum name in enum parameters
Comment 2 Wim Taymans 2009-03-24 17:45:22 UTC
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.
Comment 3 Wim Taymans 2009-03-24 18:36:05 UTC
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.
Comment 4 Charles Wang 2009-03-25 12:11:03 UTC
Pretty good~  thanks greatly.