From 6b7af81e303cb2cbcd02d450554373178eb750f2 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Tim-Philipp=20M=C3=BCller?= Date: Fri, 8 Oct 2010 09:45:30 +0100 Subject: [PATCH] audio: 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=629746 --- gst-libs/gst/audio/gstbaseaudiosink.c | 7 ++++--- gst-libs/gst/audio/gstbaseaudiosrc.c | 11 +++++++---- 2 files changed, 11 insertions(+), 7 deletions(-) diff --git a/gst-libs/gst/audio/gstbaseaudiosink.c b/gst-libs/gst/audio/gstbaseaudiosink.c index 9fb051404f..21117f2e81 100644 --- a/gst-libs/gst/audio/gstbaseaudiosink.c +++ b/gst-libs/gst/audio/gstbaseaudiosink.c @@ -112,9 +112,10 @@ gst_base_audio_sink_slave_method_get_type (void) { static GType slave_method_type = 0; static const GEnumValue slave_method[] = { - {GST_BASE_AUDIO_SINK_SLAVE_RESAMPLE, "Resampling slaving", "resample"}, - {GST_BASE_AUDIO_SINK_SLAVE_SKEW, "Skew slaving", "skew"}, - {GST_BASE_AUDIO_SINK_SLAVE_NONE, "No slaving", "none"}, + {GST_BASE_AUDIO_SINK_SLAVE_RESAMPLE, "GST_BASE_AUDIO_SINK_SLAVE_RESAMPLE", + "resample"}, + {GST_BASE_AUDIO_SINK_SLAVE_SKEW, "GST_BASE_AUDIO_SINK_SLAVE_SKEW", "skew"}, + {GST_BASE_AUDIO_SINK_SLAVE_NONE, "GST_BASE_AUDIO_SINK_SLAVE_NONE", "none"}, {0, NULL, NULL}, }; diff --git a/gst-libs/gst/audio/gstbaseaudiosrc.c b/gst-libs/gst/audio/gstbaseaudiosrc.c index a12dd59fec..1eb0a8969c 100644 --- a/gst-libs/gst/audio/gstbaseaudiosrc.c +++ b/gst-libs/gst/audio/gstbaseaudiosrc.c @@ -49,11 +49,14 @@ GType gst_base_audio_src_slave_method_get_type (void) { static GType slave_method_type = 0; + /* FIXME 0.11: nick should be "retimestamp" not "re-timestamp" */ static const GEnumValue slave_method[] = { - {GST_BASE_AUDIO_SRC_SLAVE_RESAMPLE, "Resampling slaving", "resample"}, - {GST_BASE_AUDIO_SRC_SLAVE_RETIMESTAMP, "Re-timestamp", "re-timestamp"}, - {GST_BASE_AUDIO_SRC_SLAVE_SKEW, "Skew", "skew"}, - {GST_BASE_AUDIO_SRC_SLAVE_NONE, "No slaving", "none"}, + {GST_BASE_AUDIO_SRC_SLAVE_RESAMPLE, + "GST_BASE_AUDIO_SRC_SLAVE_RESAMPLE", "resample"}, + {GST_BASE_AUDIO_SRC_SLAVE_RETIMESTAMP, + "GST_BASE_AUDIO_SRC_SLAVE_RETIMESTAMP", "re-timestamp"}, + {GST_BASE_AUDIO_SRC_SLAVE_SKEW, "GST_BASE_AUDIO_SRC_SLAVE_SKEW", "skew"}, + {GST_BASE_AUDIO_SRC_SLAVE_NONE, "GST_BASE_AUDIO_SRC_SLAVE_NONE", "none"}, {0, NULL, NULL}, };