mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-31 03:29:50 +00:00
glupload: Release glupload buffer when caps are changed
https://bugzilla.gnome.org/show_bug.cgi?id=748371
This commit is contained in:
parent
e5d62b073b
commit
8f740fb484
1 changed files with 3 additions and 1 deletions
|
@ -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…
Reference in a new issue