diff options
author | Sebastian Dröge <sebastian@centricular.com> | 2020-05-31 10:02:12 +0300 |
---|---|---|
committer | Sebastian Dröge <sebastian@centricular.com> | 2020-05-31 10:03:17 +0300 |
commit | 5738a8c1d664bfbef134eec1806a95ecceb7af00 (patch) | |
tree | e1afadcc4d04d83cac967f1c3d15cab45f6a4262 | |
parent | 74bb89eb89ed8ecaafeaba54e97d6cfa06956fa8 (diff) |
plugins: Use gst_type_mark_as_plugin_api() for all non-element plugin types
-rw-r--r-- | ext/libav/gstavcfg.c | 4 | ||||
-rw-r--r-- | ext/libav/gstavdeinterlace.c | 2 | ||||
-rw-r--r-- | ext/libav/gstavviddec.c | 4 | ||||
-rw-r--r-- | ext/libav/gstavvidenc.c | 2 |
4 files changed, 12 insertions, 0 deletions
diff --git a/ext/libav/gstavcfg.c b/ext/libav/gstavcfg.c index 1c58dd5..21ab961 100644 --- a/ext/libav/gstavcfg.c +++ b/ext/libav/gstavcfg.c @@ -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: diff --git a/ext/libav/gstavdeinterlace.c b/ext/libav/gstavdeinterlace.c index faa0398..9b57cd5 100644 --- a/ext/libav/gstavdeinterlace.c +++ b/ext/libav/gstavdeinterlace.c @@ -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 diff --git a/ext/libav/gstavviddec.c b/ext/libav/gstavviddec.c index ded4c4a..e97aa58 100644 --- a/ext/libav/gstavviddec.c +++ b/ext/libav/gstavviddec.c @@ -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 diff --git a/ext/libav/gstavvidenc.c b/ext/libav/gstavvidenc.c index d0b37ec..2aecf15 100644 --- a/ext/libav/gstavvidenc.c +++ b/ext/libav/gstavvidenc.c @@ -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 |