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
parent 19724f6ece
commit 99c48c34c1

View file

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