summaryrefslogtreecommitdiff
path: root/sys/nvenc/gstnvbaseenc.c
diff options
context:
space:
mode:
Diffstat (limited to 'sys/nvenc/gstnvbaseenc.c')
-rw-r--r--sys/nvenc/gstnvbaseenc.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/sys/nvenc/gstnvbaseenc.c b/sys/nvenc/gstnvbaseenc.c
index 9c457ff7e..4ec2426f3 100644
--- a/sys/nvenc/gstnvbaseenc.c
+++ b/sys/nvenc/gstnvbaseenc.c
@@ -458,8 +458,7 @@ gst_nv_base_enc_sink_query (GstVideoEncoder * enc, GstQuery * query)
gboolean ret;
ret = gst_gl_handle_context_query ((GstElement *) nvenc, query,
- (GstGLDisplay **) & nvenc->display,
- (GstGLContext **) & nvenc->other_context);
+ nvenc->display, NULL, nvenc->other_context);
if (nvenc->display)
gst_gl_display_filter_gl_api (GST_GL_DISPLAY (nvenc->display),
SUPPORTED_GL_APIS);