plugins: Use gst_type_mark_as_plugin_api() for all non-element plugin types

This commit is contained in:
Sebastian Dröge 2020-05-31 10:02:12 +03:00
parent 74bb89eb89
commit 5738a8c1d6
4 changed files with 12 additions and 0 deletions

View file

@ -153,6 +153,8 @@ register_enum (const AVClass ** obj, const AVOption * top_opt)
res =
g_enum_register_static (enum_name, &g_array_index (values, GEnumValue,
0));
gst_type_mark_as_plugin_api (res);
}
done:
@ -211,6 +213,8 @@ register_flags (const AVClass ** obj, const AVOption * top_opt)
res =
g_flags_register_static (flags_name, &g_array_index (values,
GFlagsValue, 0));
gst_type_mark_as_plugin_api (res);
}
done:

View file

@ -181,6 +181,8 @@ gst_ffmpegdeinterlace_class_init (GstFFMpegDeinterlaceClass * klass)
"Deinterlace video", "Luca Ognibene <luogni@tin.it>");
gobject_class->dispose = gst_ffmpegdeinterlace_dispose;
gst_type_mark_as_plugin_api (GST_TYPE_FFMPEGDEINTERLACE_MODES);
}
static void

View file

@ -281,6 +281,10 @@ gst_ffmpegviddec_class_init (GstFFMpegVidDecClass * klass)
viddec_class->propose_allocation = gst_ffmpegviddec_propose_allocation;
GST_DEBUG_CATEGORY_GET (GST_CAT_PERFORMANCE, "GST_PERFORMANCE");
gst_type_mark_as_plugin_api (GST_FFMPEGVIDDEC_TYPE_LOWRES);
gst_type_mark_as_plugin_api (GST_FFMPEGVIDDEC_TYPE_SKIPFRAME);
gst_type_mark_as_plugin_api (GST_FFMPEGVIDDEC_TYPE_THREAD_TYPE);
}
static void

View file

@ -196,6 +196,8 @@ gst_ffmpegvidenc_class_init (GstFFMpegVidEncClass * klass)
venc_class->flush = gst_ffmpegvidenc_flush;
gobject_class->finalize = gst_ffmpegvidenc_finalize;
gst_type_mark_as_plugin_api (GST_TYPE_FFMPEG_PASS);
}
static void