Skip to content
Snippets Groups Projects
Commit a2b25359 authored by Romain Vimont's avatar Romain Vimont Committed by Hugo Beauzée-Luyssen
Browse files

opengl: fix filter PRIV()

The macro parameter name was the same as the member name ("filter"). To
avoid the problem, use a static inline function instead.
parent 48262555
No related branches found
No related tags found
1 merge request!562opengl: fix PRIV() macros (replace by static inline)
......@@ -68,8 +68,11 @@ struct vlc_gl_filter_priv {
struct vlc_list blend_subfilters; /**< list of vlc_gl_filter_priv.node */
};
#define vlc_gl_filter_PRIV(filter) \
container_of(filter, struct vlc_gl_filter_priv, filter)
static inline struct vlc_gl_filter_priv *
vlc_gl_filter_PRIV(struct vlc_gl_filter *filter)
{
return container_of(filter, struct vlc_gl_filter_priv, filter);
}
struct vlc_gl_filter *
vlc_gl_filter_New(vlc_object_t *parent, const struct vlc_gl_api *api);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment