Optimize GST_VAAPI_OBJECT_GET_DISPLAY to avoid a run-time check.

This commit is contained in:
gb 2010-03-24 08:34:11 +00:00
parent b8b82d3337
commit 9233fcf676

View file

@ -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: