gltestsrc: NULL out the functions used
authorMatthew Waters <matthew@centricular.com>
Tue, 4 Feb 2020 03:06:36 +0000 (14:06 +1100)
committerMatthew Waters <matthew@centricular.com>
Wed, 5 Feb 2020 04:32:14 +0000 (15:32 +1100)
Fixes segfault when the display changes

ext/gl/gstgltestsrc.c

index 116090a..1148a44 100644 (file)
@@ -300,4 +300,5 @@ gst_gl_test_src_gl_stop (GstGLBaseSrc * bsrc)
   if (src->src_impl)
     src->src_funcs->free (src->src_impl);
   src->src_impl = NULL;
+  src->src_funcs = NULL;
 }