From 689e722dfadf070f5eda260c6536cc3db0ed127b Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Thu, 24 Oct 2013 22:28:57 +1100 Subject: [PATCH] [848/906] filter: a little code cleanup --- gst-libs/gst/gl/gstglfilter.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/gst-libs/gst/gl/gstglfilter.c b/gst-libs/gst/gl/gstglfilter.c index 7d14354698..e31eff24d0 100644 --- a/gst-libs/gst/gl/gstglfilter.c +++ b/gst-libs/gst/gl/gstglfilter.c @@ -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,