diff options
author | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-10-08 09:45:30 +0100 |
---|---|---|
committer | Tim-Philipp Müller <tim.muller@collabora.co.uk> | 2010-10-08 11:34:58 +0100 |
commit | 6b7af81e303cb2cbcd02d450554373178eb750f2 (patch) | |
tree | 4e9daed64c0d51fc6a3903f9f74e1d2ffbb3bb4d | |
parent | e82835d08d2859502be9aac4f63e28cf33e7baf7 (diff) |
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
-rw-r--r-- | gst-libs/gst/audio/gstbaseaudiosink.c | 7 | ||||
-rw-r--r-- | 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 9fb051404..21117f2e8 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 a12dd59fe..1eb0a8969 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}, }; |