mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 21:51:09 +00:00
gltestsrc: free the shader on stop
This commit is contained in:
parent
acb21cdb83
commit
7e69750336
1 changed files with 5 additions and 0 deletions
|
@ -674,6 +674,11 @@ gst_gl_test_src_stop (GstBaseSrc * basesrc)
|
||||||
gst_caps_replace (&src->out_caps, NULL);
|
gst_caps_replace (&src->out_caps, NULL);
|
||||||
|
|
||||||
if (src->context) {
|
if (src->context) {
|
||||||
|
if (src->shader) {
|
||||||
|
gst_object_unref (src->shader);
|
||||||
|
src->shader = NULL;
|
||||||
|
}
|
||||||
|
|
||||||
if (src->out_tex_id) {
|
if (src->out_tex_id) {
|
||||||
gst_gl_context_del_texture (src->context, &src->out_tex_id);
|
gst_gl_context_del_texture (src->context, &src->out_tex_id);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue