mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-27 20:21:24 +00:00
move enum table into file scope
This commit is contained in:
parent
9d277b4130
commit
fcab9fa0b3
1 changed files with 24 additions and 23 deletions
|
@ -39,13 +39,8 @@ G_DEFINE_TYPE (GESTimelineBackgroundSource, ges_tl_bg_src,
|
|||
#define GES_TIMELINE_BACKGROUND_SOURCE_VPATTERN_TYPE\
|
||||
ges_timeline_background_source_vpattern_get_type()
|
||||
|
||||
GType ges_timeline_background_source_vpattern_get_type (void);
|
||||
|
||||
GType
|
||||
ges_timeline_background_source_vpattern_get_type (void)
|
||||
{
|
||||
/* table more-or-less copied from gstvideotestsrc.c */
|
||||
const static GEnumValue values[] = {
|
||||
/* table more-or-less copied from gstvideotestsrc.c */
|
||||
static GEnumValue vpattern_enum_values[] = {
|
||||
{GES_TRACK_VIDEO_BG_SRC_SMPTE, "SMPTE 100% color bars", "smpte"},
|
||||
{GES_TRACK_VIDEO_BG_SRC_SNOW, "Random (television snow)", "snow"},
|
||||
{GES_TRACK_VIDEO_BG_SRC_BLACK, "100% Black", "black"},
|
||||
|
@ -65,14 +60,20 @@ ges_timeline_background_source_vpattern_get_type (void)
|
|||
{GES_TRACK_VIDEO_BG_SRC_CHROMA_ZONE_PLATE, "Chroma zone plate",
|
||||
"chroma-zone-plate"},
|
||||
{0, NULL, NULL}
|
||||
};
|
||||
};
|
||||
|
||||
GType ges_timeline_background_source_vpattern_get_type (void);
|
||||
|
||||
GType
|
||||
ges_timeline_background_source_vpattern_get_type (void)
|
||||
{
|
||||
|
||||
static gsize once = 0;
|
||||
static GType theType = 0;
|
||||
|
||||
if (g_once_init_enter (&once)) {
|
||||
theType = g_enum_register_static ("GESTimelineBackgroundSourceVPattern",
|
||||
values);
|
||||
vpattern_enum_values);
|
||||
g_once_init_leave (&once, 1);
|
||||
};
|
||||
|
||||
|
|
Loading…
Reference in a new issue