diff --git a/ext/qt/gstqtsink.cc b/ext/qt/gstqtsink.cc index 62a5373689..85d6ae3f66 100644 --- a/ext/qt/gstqtsink.cc +++ b/ext/qt/gstqtsink.cc @@ -262,7 +262,7 @@ gst_qt_sink_query (GstBaseSink * bsink, GstQuery * query) context = gst_context_new ("gst.gl.local_context", FALSE); s = gst_context_writable_structure (context); - gst_structure_set (s, "context", GST_GL_TYPE_CONTEXT, qt_sink->context, + gst_structure_set (s, "context", GST_TYPE_GL_CONTEXT, qt_sink->context, NULL); gst_query_set_context (query, context); gst_context_unref (context); diff --git a/ext/qt/gstqtsrc.cc b/ext/qt/gstqtsrc.cc index 3cfc709f18..83aed985fd 100644 --- a/ext/qt/gstqtsrc.cc +++ b/ext/qt/gstqtsrc.cc @@ -310,7 +310,7 @@ gst_qt_src_query (GstBaseSrc * bsrc, GstQuery * query) context = gst_context_new ("gst.gl.app_context", FALSE); s = gst_context_writable_structure (context); - gst_structure_set (s, "context", GST_GL_TYPE_CONTEXT, + gst_structure_set (s, "context", GST_TYPE_GL_CONTEXT, qt_src->qt_context, NULL); gst_query_set_context (query, context); gst_context_unref (context); @@ -348,7 +348,7 @@ _find_local_gl_context (GstQtSrc * qt_src) gst_query_parse_context (query, &context); if (context) { s = gst_context_get_structure (context); - gst_structure_get (s, "context", GST_GL_TYPE_CONTEXT, &qt_src->context, + gst_structure_get (s, "context", GST_TYPE_GL_CONTEXT, &qt_src->context, NULL); } }