plugins: Use gst_type_mark_as_plugin_api() for all non-element plugin types
authorSebastian Dröge <sebastian@centricular.com>
Sun, 31 May 2020 07:02:12 +0000 (10:02 +0300)
committerSebastian Dröge <sebastian@centricular.com>
Sun, 31 May 2020 07:03:17 +0000 (10:03 +0300)
ext/libav/gstavcfg.c
ext/libav/gstavdeinterlace.c
ext/libav/gstavviddec.c
ext/libav/gstavvidenc.c

index 1c58dd5..21ab961 100644 (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:
index faa0398..9b57cd5 100644 (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
index ded4c4a..e97aa58 100644 (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
index d0b37ec..2aecf15 100644 (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