mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-10 03:19:40 +00:00
Optimize GST_VAAPI_OBJECT_GET_DISPLAY to avoid a run-time check.
This commit is contained in:
parent
b8b82d3337
commit
9233fcf676
1 changed files with 2 additions and 1 deletions
|
@ -35,9 +35,10 @@ G_BEGIN_DECLS
|
||||||
* @object: a #GstVaapiObject
|
* @object: a #GstVaapiObject
|
||||||
*
|
*
|
||||||
* Macro that evaluates to the #GstVaapiDisplay @object is bound to.
|
* Macro that evaluates to the #GstVaapiDisplay @object is bound to.
|
||||||
|
* This is an internal macro that does not do any run-time type checks.
|
||||||
*/
|
*/
|
||||||
#define GST_VAAPI_OBJECT_GET_DISPLAY(object) \
|
#define GST_VAAPI_OBJECT_GET_DISPLAY(object) \
|
||||||
gst_vaapi_object_get_display(GST_VAAPI_OBJECT(object))
|
(((GstVaapiObject *)(object))->priv->display)
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* GstVaapiObjectPrivate:
|
* GstVaapiObjectPrivate:
|
||||||
|
|
Loading…
Reference in a new issue