[gst-cvs] gstreamer: dataprotocol, lfocontrolsource: fix enum value name in enums that are public API

Tim Müller tpm at kemper.freedesktop.org
Fri Oct 8 01:35:54 PDT 2010


Module: gstreamer
Branch: master
Commit: c7e3bab65d143dc62f21218917bf447f248a8758
URL:    http://cgit.freedesktop.org/gstreamer/gstreamer/commit/?id=c7e3bab65d143dc62f21218917bf447f248a8758

Author: Tim-Philipp Müller <tim.muller at collabora.co.uk>
Date:   Fri Oct  8 00:38:39 2010 +0100

dataprotocol, lfocontrolsource: fix enum value name in enums that are public API

So run-time bindings can introspect the names correctly (we abuse this
field as description field only in elements, not for public API
(where the description belongs into the gtk-doc chunk).

https://bugzilla.gnome.org/show_bug.cgi?id=629946

---

 libs/gst/controller/gstlfocontrolsource.c |   10 +++++-----
 libs/gst/dataprotocol/dataprotocol.c      |    4 ++--
 2 files changed, 7 insertions(+), 7 deletions(-)

diff --git a/libs/gst/controller/gstlfocontrolsource.c b/libs/gst/controller/gstlfocontrolsource.c
index 888e22b..97e1ba7 100644
--- a/libs/gst/controller/gstlfocontrolsource.c
+++ b/libs/gst/controller/gstlfocontrolsource.c
@@ -584,15 +584,15 @@ gst_lfo_waveform_get_type (void)
 
   if (gtype == 0) {
     static const GEnumValue values[] = {
-      {GST_LFO_WAVEFORM_SINE, "Sine waveform (default)",
+      {GST_LFO_WAVEFORM_SINE, "GST_LFO_WAVEFORM_SINE",
           "sine"},
-      {GST_LFO_WAVEFORM_SQUARE, "Square waveform",
+      {GST_LFO_WAVEFORM_SQUARE, "GST_LFO_WAVEFORM_SQUARE",
           "square"},
-      {GST_LFO_WAVEFORM_SAW, "Saw waveform",
+      {GST_LFO_WAVEFORM_SAW, "GST_LFO_WAVEFORM_SAW",
           "saw"},
-      {GST_LFO_WAVEFORM_REVERSE_SAW, "Reverse saw waveform",
+      {GST_LFO_WAVEFORM_REVERSE_SAW, "GST_LFO_WAVEFORM_REVERSE_SAW",
           "reverse-saw"},
-      {GST_LFO_WAVEFORM_TRIANGLE, "Triangle waveform",
+      {GST_LFO_WAVEFORM_TRIANGLE, "GST_LFO_WAVEFORM_TRIANGLE",
           "triangle"},
       {0, NULL, NULL}
     };
diff --git a/libs/gst/dataprotocol/dataprotocol.c b/libs/gst/dataprotocol/dataprotocol.c
index ac0a9ce..5e413b0 100644
--- a/libs/gst/dataprotocol/dataprotocol.c
+++ b/libs/gst/dataprotocol/dataprotocol.c
@@ -294,8 +294,8 @@ gst_dp_version_get_type (void)
 {
   static GType gst_dp_version_type = 0;
   static const GEnumValue gst_dp_version[] = {
-    {GST_DP_VERSION_0_2, "GDP Version 0.2", "0.2"},
-    {GST_DP_VERSION_1_0, "GDP Version 1.0", "1.0"},
+    {GST_DP_VERSION_0_2, "GST_DP_VERSION_0_2", "0.2"},
+    {GST_DP_VERSION_1_0, "GST_DP_VERSION_1_0", "1.0"},
     {0, NULL, NULL},
   };
 





More information about the Gstreamer-commits mailing list