glupload: Release glupload buffer when caps are changed
https://bugzilla.gnome.org/show_bug.cgi?id=748371
This commit is contained in:
parent
41af2f4ad8
commit
6d75eaf005
@ -194,8 +194,10 @@ _gst_gl_upload_element_set_caps (GstBaseTransform * bt, GstCaps * in_caps,
|
||||
gst_caps_replace (&upload->in_caps, in_caps);
|
||||
gst_caps_replace (&upload->out_caps, out_caps);
|
||||
|
||||
if (upload->upload)
|
||||
if (upload->upload) {
|
||||
gst_gl_upload_release_buffer (upload->upload);
|
||||
return gst_gl_upload_set_caps (upload->upload, in_caps, out_caps);
|
||||
}
|
||||
|
||||
return TRUE;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user