gl/tests: fix deadlock on glcontext wrapped context test
authorMatthew Waters <matthew@centricular.com>
Fri, 13 Mar 2015 09:37:46 +0000 (09:37 +0000)
committerTim-Philipp Müller <tim@centricular.com>
Sat, 9 Dec 2017 19:31:57 +0000 (19:31 +0000)
tests/check/libs/gstglcontext.c

index bc0fa7874243d5226fa46e9c511225e6c3c1a63a..901db504ef9d7ba2032ec8b18ae4bef1978ed1eb 100644 (file)
@@ -374,13 +374,12 @@ GST_START_TEST (test_wrapped_context)
     i++;
   }
 
-  gst_object_unref (other_context);
-
   gst_gl_window_send_message (window, GST_GL_WINDOW_CB (check_wrapped),
       wrapped_context);
 
   gst_gl_window_send_message (other_window, GST_GL_WINDOW_CB (deinit), context);
 
+  gst_object_unref (other_context);
   gst_object_unref (other_window);
   gst_object_unref (window);
   gst_object_unref (context);