object_class->get_property = gst_vaapi_display_get_property;
object_class->constructed = gst_vaapi_display_constructed;
- dpy_class->lock_display = gst_vaapi_display_lock_default;
- dpy_class->unlock_display = gst_vaapi_display_unlock_default;
+ dpy_class->lock = gst_vaapi_display_lock_default;
+ dpy_class->unlock = gst_vaapi_display_unlock_default;
g_object_class_install_property
(object_class,
g_return_if_fail(GST_VAAPI_IS_DISPLAY(display));
klass = GST_VAAPI_DISPLAY_GET_CLASS(display);
- if (klass->lock_display)
- klass->lock_display(display);
+ if (klass->lock)
+ klass->lock(display);
}
/**
g_return_if_fail(GST_VAAPI_IS_DISPLAY(display));
klass = GST_VAAPI_DISPLAY_GET_CLASS(display);
- if (klass->unlock_display)
- klass->unlock_display(display);
+ if (klass->unlock)
+ klass->unlock(display);
}
/**
* GstVaapiDisplayClass:
* @open_display: virtual function to open a display
* @close_display: virtual function to close a display
- * @lock_display: virtual function to lock a display
- * @unlock_display: virtual function to unlock a display
+ * @lock: virtual function to lock a display
+ * @unlock: virtual function to unlock a display
* @get_display: virtual function to retrieve the #VADisplay
* @get_size: virtual function to retrieve the display dimensions, in pixels
* @get_size_mm: virtual function to retrieve the display dimensions, in millimeters
/*< public >*/
gboolean (*open_display) (GstVaapiDisplay *display);
void (*close_display) (GstVaapiDisplay *display);
- void (*lock_display) (GstVaapiDisplay *display);
- void (*unlock_display)(GstVaapiDisplay *display);
+ void (*lock) (GstVaapiDisplay *display);
+ void (*unlock) (GstVaapiDisplay *display);
VADisplay (*get_display) (GstVaapiDisplay *display);
void (*get_size) (GstVaapiDisplay *display,
guint *pwidth, guint *pheight);