From ae08ada8f08a410dc4c211670e9cf6301c4c51df Mon Sep 17 00:00:00 2001 From: Matthew Waters Date: Fri, 13 Mar 2015 09:37:46 +0000 Subject: [PATCH] gl/tests: fix deadlock on glcontext wrapped context test --- tests/check/libs/gstglcontext.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/tests/check/libs/gstglcontext.c b/tests/check/libs/gstglcontext.c index bc0fa78742..901db504ef 100644 --- a/tests/check/libs/gstglcontext.c +++ b/tests/check/libs/gstglcontext.c @@ -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);