glfilter: Remove redundant check for clearing context on reset.
authorJan Schmidt <jan@centricular.com>
Wed, 11 Mar 2015 06:19:17 +0000 (17:19 +1100)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:56 +0000 (19:31 +0000)
The context is already cleared a few lines above.

gst-libs/gst/gl/gstglfilter.c

index 0c3abde..8a0a498 100644 (file)
@@ -315,10 +315,6 @@ gst_gl_filter_reset (GstGLFilter * filter)
     gst_object_unref (filter->other_context);
   filter->other_context = NULL;
 
-  if (filter->context)
-    gst_object_unref (filter->context);
-  filter->context = NULL;
-
   if (filter->in_converted_caps) {
     gst_caps_unref (filter->in_converted_caps);
     filter->in_converted_caps = NULL;