mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-12-25 17:50:36 +00:00
gl/filter: always initialize the upload object
This commit is contained in:
parent
8fd450b941
commit
6872ad5ff5
1 changed files with 2 additions and 2 deletions
|
@ -1127,9 +1127,9 @@ gst_gl_filter_transform (GstBaseTransform * bt, GstBuffer * inbuf,
|
||||||
filter->upload = gst_object_ref (GST_GL_BUFFER_POOL (pool)->upload);
|
filter->upload = gst_object_ref (GST_GL_BUFFER_POOL (pool)->upload);
|
||||||
} else {
|
} else {
|
||||||
filter->upload = gst_gl_upload_new (filter->context);
|
filter->upload = gst_gl_upload_new (filter->context);
|
||||||
if (!gst_gl_upload_init_format (filter->upload, &filter->in_info))
|
|
||||||
goto upload_error;
|
|
||||||
}
|
}
|
||||||
|
if (!gst_gl_upload_init_format (filter->upload, &filter->in_info))
|
||||||
|
goto upload_error;
|
||||||
|
|
||||||
gst_caps_unref (in_caps);
|
gst_caps_unref (in_caps);
|
||||||
gst_caps_unref (out_caps);
|
gst_caps_unref (out_caps);
|
||||||
|
|
Loading…
Reference in a new issue