gl: fix a double unref of the query when building without X

This commit is contained in:
Matthew Waters 2014-03-16 18:55:03 +01:00 committed by Tim-Philipp Müller
parent 312741634d
commit e51e0a8869

View file

@ -490,9 +490,8 @@ gst_gl_display_context_prepare (GstElement * element,
if (*display_ptr) if (*display_ptr)
goto out; goto out;
} }
gst_query_unref (query);
#if GST_GL_HAVE_WINDOW_X11 #if GST_GL_HAVE_WINDOW_X11
gst_query_unref (query);
query = query =
_gst_gl_display_context_query (element, display_ptr, _gst_gl_display_context_query (element, display_ptr,
"gst.x11.display.handle"); "gst.x11.display.handle");