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.
This commit is contained in:
Gwenole Beauchesne 2013-07-08 11:41:59 +02:00
parent 99dfd44f33
commit ad7202bb77

View file

@ -58,7 +58,7 @@ struct _GstVaapiSurfaceProxy {
*/ */
#undef GST_VAAPI_SURFACE_PROXY_SURFACE #undef GST_VAAPI_SURFACE_PROXY_SURFACE
#define GST_VAAPI_SURFACE_PROXY_SURFACE(proxy) \ #define GST_VAAPI_SURFACE_PROXY_SURFACE(proxy) \
proxy->surface GST_VAAPI_SURFACE_PROXY(proxy)->surface
/** /**
* GST_VAAPI_SURFACE_PROXY_SURFACE_ID: * GST_VAAPI_SURFACE_PROXY_SURFACE_ID:
@ -71,7 +71,7 @@ struct _GstVaapiSurfaceProxy {
*/ */
#undef GST_VAAPI_SURFACE_PROXY_SURFACE_ID #undef GST_VAAPI_SURFACE_PROXY_SURFACE_ID
#define GST_VAAPI_SURFACE_PROXY_SURFACE_ID(proxy) \ #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: * GST_VAAPI_SURFACE_PROXY_TIMESTAMP:
@ -84,7 +84,7 @@ struct _GstVaapiSurfaceProxy {
*/ */
#undef GST_VAAPI_SURFACE_PROXY_TIMESTAMP #undef GST_VAAPI_SURFACE_PROXY_TIMESTAMP
#define GST_VAAPI_SURFACE_PROXY_TIMESTAMP(proxy) \ #define GST_VAAPI_SURFACE_PROXY_TIMESTAMP(proxy) \
proxy->timestamp GST_VAAPI_SURFACE_PROXY(proxy)->timestamp
/** /**
* GST_VAAPI_SURFACE_PROXY_DURATION: * GST_VAAPI_SURFACE_PROXY_DURATION:
@ -97,7 +97,7 @@ struct _GstVaapiSurfaceProxy {
*/ */
#undef GST_VAAPI_SURFACE_PROXY_DURATION #undef GST_VAAPI_SURFACE_PROXY_DURATION
#define GST_VAAPI_SURFACE_PROXY_DURATION(proxy) \ #define GST_VAAPI_SURFACE_PROXY_DURATION(proxy) \
proxy->duration GST_VAAPI_SURFACE_PROXY(proxy)->duration
/** /**
* GST_VAAPI_SURFACE_PROXY_CROP_RECT: * GST_VAAPI_SURFACE_PROXY_CROP_RECT:
@ -109,6 +109,6 @@ struct _GstVaapiSurfaceProxy {
*/ */
#undef GST_VAAPI_SURFACE_PROXY_CROP_RECT #undef GST_VAAPI_SURFACE_PROXY_CROP_RECT
#define GST_VAAPI_SURFACE_PROXY_CROP_RECT(proxy) \ #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 */ #endif /* GST_VAAPI_SURFACE_PROXY_PRIV_H */