Commit 31d85bfb authored by Thibault Saunier's avatar Thibault Saunier 🌵

Use gst_type_mark_as_plugin_api() for all non-element plugin types

parent e41c6bd2
......@@ -1225,6 +1225,7 @@ gst_vaapi_display_class_init (GstVaapiDisplayClass * klass)
"The display contrast value", 0.0, 2.0, 1.0, G_PARAM_READWRITE);
g_object_class_install_properties (object_class, N_PROPERTIES, g_properties);
gst_type_mark_as_plugin_api (gst_vaapi_display_type_get_type ());
}
/**
......
......@@ -4045,6 +4045,12 @@ gst_vaapi_encoder_h264_class_init (GstVaapiEncoderH264Class * klass)
g_object_class_install_properties (object_class, ENCODER_H264_N_PROPERTIES,
properties);
gst_type_mark_as_plugin_api (GST_VAAPI_TYPE_ENCODER_MBBRC);
gst_type_mark_as_plugin_api (gst_vaapi_encoder_h264_prediction_type ());
gst_type_mark_as_plugin_api (g_class_data.rate_control_get_type ());
gst_type_mark_as_plugin_api (g_class_data.encoder_tune_get_type ());
gst_type_mark_as_plugin_api (gst_vaapi_encoder_h264_compliance_mode_type ());
}
/**
......
......@@ -3173,6 +3173,9 @@ gst_vaapi_encoder_h265_class_init (GstVaapiEncoderH265Class * klass)
g_object_class_install_properties (object_class, ENCODER_H265_N_PROPERTIES,
properties);
gst_type_mark_as_plugin_api (g_class_data.rate_control_get_type ());
gst_type_mark_as_plugin_api (g_class_data.encoder_tune_get_type ());
}
/**
......
......@@ -121,6 +121,8 @@ gst_vaapi_scale_method_get_type (void)
const GType type =
g_enum_register_static ("GstVaapiScaleMethod", enum_values);
g_once_init_leave (&g_type, type);
gst_type_mark_as_plugin_api (type);
}
return g_type;
}
......@@ -147,6 +149,7 @@ gst_vaapi_deinterlace_method_get_type (void)
if (g_once_init_enter (&g_type)) {
const GType type =
g_enum_register_static ("GstVaapiDeinterlaceMethod", enum_values);
gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
......@@ -170,6 +173,7 @@ gst_vaapi_deinterlace_flags_get_type (void)
if (g_once_init_enter (&g_type)) {
const GType type =
g_enum_register_static ("GstVaapiDeinterlaceFlags", enum_values);
gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
......
......@@ -56,6 +56,7 @@ gst_vaapi_point_get_type (void)
GType type =
g_boxed_type_register_static (g_intern_static_string ("GstVaapiPoint"),
default_copy_func, default_free_func);
gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
......@@ -73,6 +74,7 @@ gst_vaapi_rectangle_get_type (void)
g_boxed_type_register_static (g_intern_static_string
("GstVaapiRectangle"),
default_copy_func, default_free_func);
gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
......@@ -95,6 +97,7 @@ gst_vaapi_render_mode_get_type (void)
if (g_once_init_enter (&g_type)) {
GType type = g_enum_register_static ("GstVaapiRenderMode", render_modes);
gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
......@@ -123,6 +126,7 @@ gst_vaapi_rotation_get_type (void)
if (g_once_init_enter (&g_type)) {
GType type = g_enum_register_static ("GstVaapiRotation", rotation_values);
gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
......@@ -160,6 +164,7 @@ gst_vaapi_rate_control_get_type (void)
if (g_once_init_enter (&g_type)) {
GType type = g_enum_register_static ("GstVaapiRateControl",
rate_control_values);
gst_type_mark_as_plugin_api (type);
g_once_init_leave (&g_type, type);
}
return g_type;
......
......@@ -2315,6 +2315,7 @@ gst_vaapipostproc_class_init (GstVaapiPostprocClass * klass)
DEFAULT_DEINTERLACE_METHOD,
G_PARAM_READWRITE | G_PARAM_STATIC_STRINGS));
filter_ops = gst_vaapi_filter_get_operations (NULL);
if (!filter_ops)
return;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment