{
return gst_gl_handle_context_query ((GstElement *) glimage_sink, query,
&glimage_sink->display);
- break;
}
default:
res = GST_BASE_SINK_CLASS (parent_class)->query (bsink, query);
case GST_QUERY_ALLOCATION:
{
GstQuery *decide_query = NULL;
- gboolean negotiated;
GST_OBJECT_LOCK (mix);
- if (G_UNLIKELY (!(negotiated = mix->priv->negotiated))) {
+ if (G_UNLIKELY (!mix->priv->negotiated)) {
GST_DEBUG_OBJECT (mix,
"not negotiated yet, can't answer ALLOCATION query");
GST_OBJECT_UNLOCK (mix);
G_TYPE_POINTER, &handle, "gst.gl.context.type", G_TYPE_STRING,
&type, "gst.gl.context.apis", G_TYPE_STRING, &apis, NULL)
&& handle) {
- GstGLPlatform platform = GST_GL_PLATFORM_NONE;
+ GstGLPlatform platform;
GstGLAPI gl_apis;
GST_DEBUG ("got GL context handle 0x%p with type %s and apis %s",