From dba174906a856f47cf86c8594f56780b6550b6ce Mon Sep 17 00:00:00 2001 From: Javier Jardón Date: Fri, 29 Jun 2012 15:19:51 +0900 Subject: libs: declare _get_type() functions as const. Declaring a function as const enables better optimization of calls to the function. Signed-off-by: Gwenole Beauchesne --- gst-libs/gst/vaapi/gstvaapisurfaceproxy.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'gst-libs/gst/vaapi/gstvaapisurfaceproxy.h') diff --git a/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h b/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h index b32458c7..35e38f7c 100644 --- a/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h +++ b/gst-libs/gst/vaapi/gstvaapisurfaceproxy.h @@ -117,7 +117,7 @@ struct _GstVaapiSurfaceProxyClass { }; GType -gst_vaapi_surface_proxy_get_type(void); +gst_vaapi_surface_proxy_get_type(void) G_GNUC_CONST; GstVaapiSurfaceProxy * gst_vaapi_surface_proxy_new(GstVaapiContext *context, GstVaapiSurface *surface); -- cgit v1.2.3