From 9dcaa0d09f39f46c45d2e66e31b3116d49b9c762 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?V=C3=ADctor=20Manuel=20J=C3=A1quez=20Leal?= Date: Fri, 22 Sep 2017 15:16:34 +0200 Subject: [PATCH] libs: display: remove gst_vaapi_display_properties_init() Remove gst_vaapi_display_properties_init() since it can be unrolled in gst_vaapi_display_class_init() https://bugzilla.gnome.org/show_bug.cgi?id=788058 --- gst-libs/gst/vaapi/gstvaapidisplay.c | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapidisplay.c b/gst-libs/gst/vaapi/gstvaapidisplay.c index 2881cd9353..4cf64e3016 100644 --- a/gst-libs/gst/vaapi/gstvaapidisplay.c +++ b/gst-libs/gst/vaapi/gstvaapidisplay.c @@ -84,9 +84,7 @@ struct _GstVaapiFormatInfo enum { - PROP_0, - - PROP_RENDER_MODE, + PROP_RENDER_MODE = 1, PROP_ROTATION, PROP_HUE, PROP_SATURATION, @@ -98,8 +96,6 @@ enum static GParamSpec *g_properties[N_PROPERTIES] = { NULL, }; -static void gst_vaapi_display_properties_init (void); - static gboolean get_attribute (GstVaapiDisplay * display, VADisplayAttribType type, gint * value); @@ -963,12 +959,6 @@ gst_vaapi_display_class_init (GstVaapiDisplayClass * klass) klass->lock = gst_vaapi_display_lock_default; klass->unlock = gst_vaapi_display_unlock_default; - gst_vaapi_display_properties_init (); -} - -static void -gst_vaapi_display_properties_init (void) -{ /** * GstVaapiDisplay:render-mode: *