mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-12 22:52:49 +00:00
glimagesink: remove unused texture
This commit is contained in:
parent
d4a72b61c0
commit
364b01aca9
2 changed files with 0 additions and 8 deletions
|
@ -651,9 +651,6 @@ gst_glimage_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
|
||||||
width = GST_VIDEO_INFO_WIDTH (&vinfo);
|
width = GST_VIDEO_INFO_WIDTH (&vinfo);
|
||||||
height = GST_VIDEO_INFO_HEIGHT (&vinfo);
|
height = GST_VIDEO_INFO_HEIGHT (&vinfo);
|
||||||
|
|
||||||
if (glimage_sink->tex_id)
|
|
||||||
gst_gl_context_del_texture (glimage_sink->context, &glimage_sink->tex_id);
|
|
||||||
|
|
||||||
par_n = GST_VIDEO_INFO_PAR_N (&vinfo);
|
par_n = GST_VIDEO_INFO_PAR_N (&vinfo);
|
||||||
par_d = GST_VIDEO_INFO_PAR_D (&vinfo);
|
par_d = GST_VIDEO_INFO_PAR_D (&vinfo);
|
||||||
|
|
||||||
|
@ -704,10 +701,6 @@ gst_glimage_sink_set_caps (GstBaseSink * bsink, GstCaps * caps)
|
||||||
if (!_ensure_gl_setup (glimage_sink))
|
if (!_ensure_gl_setup (glimage_sink))
|
||||||
return FALSE;
|
return FALSE;
|
||||||
|
|
||||||
//FIXME: this texture seems to be never deleted when going to STATE_NULL
|
|
||||||
gst_gl_context_gen_texture (glimage_sink->context, &glimage_sink->tex_id,
|
|
||||||
GST_VIDEO_INFO_FORMAT (&glimage_sink->info), width, height);
|
|
||||||
|
|
||||||
newpool = gst_gl_buffer_pool_new (glimage_sink->context);
|
newpool = gst_gl_buffer_pool_new (glimage_sink->context);
|
||||||
structure = gst_buffer_pool_get_config (newpool);
|
structure = gst_buffer_pool_get_config (newpool);
|
||||||
gst_buffer_pool_config_set_params (structure, caps, vinfo.size, 2, 0);
|
gst_buffer_pool_config_set_params (structure, caps, vinfo.size, 2, 0);
|
||||||
|
|
|
@ -66,7 +66,6 @@ struct _GstGLImageSink
|
||||||
|
|
||||||
GstGLUpload *upload;
|
GstGLUpload *upload;
|
||||||
guint next_tex;
|
guint next_tex;
|
||||||
GLuint tex_id;
|
|
||||||
|
|
||||||
CRCB clientReshapeCallback;
|
CRCB clientReshapeCallback;
|
||||||
CDCB clientDrawCallback;
|
CDCB clientDrawCallback;
|
||||||
|
|
Loading…
Reference in a new issue