From ad7202bb77971a717f3139ecafce4412e34ea67d Mon Sep 17 00:00:00 2001 From: Gwenole Beauchesne Date: Mon, 8 Jul 2013 11:41:59 +0200 Subject: [PATCH] surfaceproxy: clean-up helper macros. Always use the GST_VAAPI_SURFACE_PROXY() helper macro to cast from a proxy macro argument to a GstVaapiSurfaceProxy pointer. --- gst-libs/gst/vaapi/gstvaapisurfaceproxy_priv.h | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/gst-libs/gst/vaapi/gstvaapisurfaceproxy_priv.h b/gst-libs/gst/vaapi/gstvaapisurfaceproxy_priv.h index 6e5d75828a..a89bf7737f 100644 --- a/gst-libs/gst/vaapi/gstvaapisurfaceproxy_priv.h +++ b/gst-libs/gst/vaapi/gstvaapisurfaceproxy_priv.h @@ -58,7 +58,7 @@ struct _GstVaapiSurfaceProxy { */ #undef GST_VAAPI_SURFACE_PROXY_SURFACE #define GST_VAAPI_SURFACE_PROXY_SURFACE(proxy) \ - proxy->surface + GST_VAAPI_SURFACE_PROXY(proxy)->surface /** * GST_VAAPI_SURFACE_PROXY_SURFACE_ID: @@ -71,7 +71,7 @@ struct _GstVaapiSurfaceProxy { */ #undef GST_VAAPI_SURFACE_PROXY_SURFACE_ID #define GST_VAAPI_SURFACE_PROXY_SURFACE_ID(proxy) \ - GST_VAAPI_OBJECT_ID(proxy->surface) + GST_VAAPI_OBJECT_ID(GST_VAAPI_SURFACE_PROXY(proxy)->surface) /** * GST_VAAPI_SURFACE_PROXY_TIMESTAMP: @@ -84,7 +84,7 @@ struct _GstVaapiSurfaceProxy { */ #undef GST_VAAPI_SURFACE_PROXY_TIMESTAMP #define GST_VAAPI_SURFACE_PROXY_TIMESTAMP(proxy) \ - proxy->timestamp + GST_VAAPI_SURFACE_PROXY(proxy)->timestamp /** * GST_VAAPI_SURFACE_PROXY_DURATION: @@ -97,7 +97,7 @@ struct _GstVaapiSurfaceProxy { */ #undef GST_VAAPI_SURFACE_PROXY_DURATION #define GST_VAAPI_SURFACE_PROXY_DURATION(proxy) \ - proxy->duration + GST_VAAPI_SURFACE_PROXY(proxy)->duration /** * GST_VAAPI_SURFACE_PROXY_CROP_RECT: @@ -109,6 +109,6 @@ struct _GstVaapiSurfaceProxy { */ #undef GST_VAAPI_SURFACE_PROXY_CROP_RECT #define GST_VAAPI_SURFACE_PROXY_CROP_RECT(proxy) \ - &(proxy)->crop_rect + &GST_VAAPI_SURFACE_PROXY(proxy)->crop_rect #endif /* GST_VAAPI_SURFACE_PROXY_PRIV_H */