Skip to content
Snippets Groups Projects
Commit 5f8aad2e authored by Romain Vimont's avatar Romain Vimont Committed by Jean-Baptiste Kempf
Browse files

opengl: expose glfmt to public filter

This will allow filters to access the format easily from the callbacks.
parent f202ba92
No related branches found
No related tags found
1 merge request!801Refactor OpenGL filters API and implementation
......@@ -61,6 +61,9 @@ vlc_gl_filter_New(struct vlc_gl_t *gl, const struct vlc_gl_api *api)
vlc_list_init(&priv->blend_subfilters);
/* Expose a const pointer to the OpenGL format publicly */
filter->glfmt_in = &priv->glfmt_in;
return filter;
}
......
......@@ -92,6 +92,7 @@ struct vlc_gl_filter {
struct vlc_gl_t *gl;
const struct vlc_gl_api *api;
const struct vlc_gl_format *glfmt_in;
struct {
/**
......
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