mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-11-30 13:41:48 +00:00
nvdec: Always response QUERY_CONTEXT even if openGL is unavailable on the system
nvdec can response for the CUDA context type query regardless of openGL availability.
This commit is contained in:
parent
8e8d4acf69
commit
807e311ae8
1 changed files with 2 additions and 2 deletions
|
@ -1156,7 +1156,6 @@ gst_nvdec_decide_allocation (GstVideoDecoder * decoder, GstQuery * query)
|
||||||
static gboolean
|
static gboolean
|
||||||
gst_nvdec_src_query (GstVideoDecoder * decoder, GstQuery * query)
|
gst_nvdec_src_query (GstVideoDecoder * decoder, GstQuery * query)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_NVCODEC_GST_GL
|
|
||||||
GstNvDec *nvdec = GST_NVDEC (decoder);
|
GstNvDec *nvdec = GST_NVDEC (decoder);
|
||||||
|
|
||||||
switch (GST_QUERY_TYPE (query)) {
|
switch (GST_QUERY_TYPE (query)) {
|
||||||
|
@ -1165,14 +1164,15 @@ gst_nvdec_src_query (GstVideoDecoder * decoder, GstQuery * query)
|
||||||
query, nvdec->cuda_ctx)) {
|
query, nvdec->cuda_ctx)) {
|
||||||
return TRUE;
|
return TRUE;
|
||||||
}
|
}
|
||||||
|
#ifdef HAVE_NVCODEC_GST_GL
|
||||||
if (gst_gl_handle_context_query (GST_ELEMENT (decoder), query,
|
if (gst_gl_handle_context_query (GST_ELEMENT (decoder), query,
|
||||||
nvdec->gl_display, nvdec->gl_context, nvdec->other_gl_context))
|
nvdec->gl_display, nvdec->gl_context, nvdec->other_gl_context))
|
||||||
return TRUE;
|
return TRUE;
|
||||||
|
#endif
|
||||||
break;
|
break;
|
||||||
default:
|
default:
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
#endif
|
|
||||||
|
|
||||||
return GST_VIDEO_DECODER_CLASS (gst_nvdec_parent_class)->src_query (decoder,
|
return GST_VIDEO_DECODER_CLASS (gst_nvdec_parent_class)->src_query (decoder,
|
||||||
query);
|
query);
|
||||||
|
|
Loading…
Reference in a new issue