mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-18 04:05:34 +00:00
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
This commit is contained in:
parent
e82835d08d
commit
6b7af81e30
2 changed files with 11 additions and 7 deletions
|
@ -112,9 +112,10 @@ gst_base_audio_sink_slave_method_get_type (void)
|
||||||
{
|
{
|
||||||
static GType slave_method_type = 0;
|
static GType slave_method_type = 0;
|
||||||
static const GEnumValue slave_method[] = {
|
static const GEnumValue slave_method[] = {
|
||||||
{GST_BASE_AUDIO_SINK_SLAVE_RESAMPLE, "Resampling slaving", "resample"},
|
{GST_BASE_AUDIO_SINK_SLAVE_RESAMPLE, "GST_BASE_AUDIO_SINK_SLAVE_RESAMPLE",
|
||||||
{GST_BASE_AUDIO_SINK_SLAVE_SKEW, "Skew slaving", "skew"},
|
"resample"},
|
||||||
{GST_BASE_AUDIO_SINK_SLAVE_NONE, "No slaving", "none"},
|
{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},
|
{0, NULL, NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
|
@ -49,11 +49,14 @@ GType
|
||||||
gst_base_audio_src_slave_method_get_type (void)
|
gst_base_audio_src_slave_method_get_type (void)
|
||||||
{
|
{
|
||||||
static GType slave_method_type = 0;
|
static GType slave_method_type = 0;
|
||||||
|
/* FIXME 0.11: nick should be "retimestamp" not "re-timestamp" */
|
||||||
static const GEnumValue slave_method[] = {
|
static const GEnumValue slave_method[] = {
|
||||||
{GST_BASE_AUDIO_SRC_SLAVE_RESAMPLE, "Resampling slaving", "resample"},
|
{GST_BASE_AUDIO_SRC_SLAVE_RESAMPLE,
|
||||||
{GST_BASE_AUDIO_SRC_SLAVE_RETIMESTAMP, "Re-timestamp", "re-timestamp"},
|
"GST_BASE_AUDIO_SRC_SLAVE_RESAMPLE", "resample"},
|
||||||
{GST_BASE_AUDIO_SRC_SLAVE_SKEW, "Skew", "skew"},
|
{GST_BASE_AUDIO_SRC_SLAVE_RETIMESTAMP,
|
||||||
{GST_BASE_AUDIO_SRC_SLAVE_NONE, "No slaving", "none"},
|
"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},
|
{0, NULL, NULL},
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue