mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-28 20:51:13 +00:00
[848/906] filter: a little code cleanup
This commit is contained in:
parent
ad315254e9
commit
689e722dfa
1 changed files with 1 additions and 2 deletions
|
@ -234,7 +234,7 @@ gst_gl_filter_reset (GstGLFilter * filter)
|
|||
|
||||
if (filter->display) {
|
||||
gst_object_unref (filter->display);
|
||||
filter->context = NULL;
|
||||
filter->display = NULL;
|
||||
}
|
||||
|
||||
filter->fbo = 0;
|
||||
|
@ -274,7 +274,6 @@ gst_gl_filter_start (GstBaseTransform * bt)
|
|||
GST_INFO ("Creating GstGLDisplay");
|
||||
filter->display = gst_gl_display_new ();
|
||||
filter->context = gst_gl_context_new (filter->display);
|
||||
gst_gl_display_set_context (filter->display, filter->context);
|
||||
|
||||
if (!gst_gl_context_create (filter->context, filter->other_context, &error)) {
|
||||
GST_ELEMENT_ERROR (filter, RESOURCE, NOT_FOUND,
|
||||
|
|
Loading…
Reference in a new issue