Commit 32a71f7d authored by Thomas Guillem's avatar Thomas Guillem

gl: rename vlc_gl_Destroy to vlc_gl_Release

parent f6097e45
......@@ -77,7 +77,7 @@ enum {
};
VLC_API vlc_gl_t *vlc_gl_Create(struct vout_window_t *, unsigned, const char *) VLC_USED;
VLC_API void vlc_gl_Destroy(vlc_gl_t *);
VLC_API void vlc_gl_Release(vlc_gl_t *);
VLC_API void vlc_gl_Hold(vlc_gl_t *);
static inline int vlc_gl_MakeCurrent(vlc_gl_t *gl)
......
......@@ -817,7 +817,7 @@ static void ClearSurface(vout_display_t *vd)
vlc_gl_ReleaseCurrent(gl);
end:
vlc_gl_Destroy(gl);
vlc_gl_Release(gl);
}
else
{
......
......@@ -165,7 +165,7 @@ static int Open (vlc_object_t *obj)
error:
if (sys->gl != NULL)
vlc_gl_Destroy (sys->gl);
vlc_gl_Release (sys->gl);
if (surface != NULL)
vout_display_DeleteWindow (vd, surface);
free (sys);
......@@ -186,7 +186,7 @@ static void Close (vlc_object_t *obj)
vout_display_opengl_Delete (sys->vgl);
vlc_gl_ReleaseCurrent (gl);
vlc_gl_Destroy (gl);
vlc_gl_Release (gl);
vout_display_DeleteWindow (vd, surface);
free (sys);
}
......
......@@ -690,7 +690,7 @@ vlc_fifo_DequeueAllUnlocked
vlc_fifo_GetCount
vlc_fifo_GetBytes
vlc_gl_Create
vlc_gl_Destroy
vlc_gl_Release
vlc_gl_Hold
vlc_gl_surface_Create
vlc_gl_surface_CheckSize
......
......@@ -88,7 +88,7 @@ void vlc_gl_Hold(vlc_gl_t *gl)
atomic_fetch_add(&glpriv->ref_count, 1);
}
void vlc_gl_Destroy(vlc_gl_t *gl)
void vlc_gl_Release(vlc_gl_t *gl)
{
struct vlc_gl_priv_t *glpriv = (struct vlc_gl_priv_t *)gl;
if (atomic_fetch_sub(&glpriv->ref_count, 1) != 1)
......@@ -193,7 +193,7 @@ void vlc_gl_surface_Destroy(vlc_gl_t *gl)
vout_window_t *surface = gl->surface;
vlc_gl_surface_t *sys = surface->owner.sys;
vlc_gl_Destroy(gl);
vlc_gl_Release(gl);
vout_window_Delete(surface);
vlc_mutex_destroy(&sys->lock);
free(sys);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment