mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-02-17 03:35:21 +00:00
plugins: Use gst_type_mark_as_plugin_api() for all non-element plugin types
This commit is contained in:
parent
74bb89eb89
commit
5738a8c1d6
4 changed files with 12 additions and 0 deletions
|
@ -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:
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue