mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
gl: fix multi gl object leaks
1. fix FBO leaks in decide_allocation 2. fix texture leaks in decide_allocation and reset 3. fix texture leaks in FBO incomplete error path
This commit is contained in:
parent
8c7916d4ec
commit
e9bf900d33
1 changed files with 6 additions and 0 deletions
|
@ -641,6 +641,12 @@ gst_gl_mixer_decide_allocation (GstGLMixer * mix, GstQuery * query)
|
||||||
out_width = GST_VIDEO_INFO_WIDTH (&vagg->info);
|
out_width = GST_VIDEO_INFO_WIDTH (&vagg->info);
|
||||||
out_height = GST_VIDEO_INFO_HEIGHT (&vagg->info);
|
out_height = GST_VIDEO_INFO_HEIGHT (&vagg->info);
|
||||||
|
|
||||||
|
if (mix->fbo) {
|
||||||
|
gst_gl_context_del_fbo (mix->context, mix->fbo, mix->depthbuffer);
|
||||||
|
mix->fbo = 0;
|
||||||
|
mix->depthbuffer = 0;
|
||||||
|
}
|
||||||
|
|
||||||
if (!gst_gl_context_gen_fbo (mix->context, out_width, out_height,
|
if (!gst_gl_context_gen_fbo (mix->context, out_width, out_height,
|
||||||
&mix->fbo, &mix->depthbuffer))
|
&mix->fbo, &mix->depthbuffer))
|
||||||
goto context_error;
|
goto context_error;
|
||||||
|
|
Loading…
Reference in a new issue