mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-06-05 06:58:56 +00:00
plugins: guard GstGL code
This commit is contained in:
parent
e93232bbf4
commit
705b37844e
1 changed files with 2 additions and 0 deletions
|
@ -246,6 +246,7 @@ gst_vaapi_create_display_from_gl_context (GstObject * gl_context_object)
|
||||||
static void
|
static void
|
||||||
gst_vaapi_find_gl_context (GstElement * element)
|
gst_vaapi_find_gl_context (GstElement * element)
|
||||||
{
|
{
|
||||||
|
#if USE_GST_GL_HELPERS
|
||||||
GstVaapiPluginBase *const plugin = GST_VAAPI_PLUGIN_BASE (element);
|
GstVaapiPluginBase *const plugin = GST_VAAPI_PLUGIN_BASE (element);
|
||||||
|
|
||||||
/* if the element is vaapisink or any vaapi encoder it doesn't need
|
/* if the element is vaapisink or any vaapi encoder it doesn't need
|
||||||
|
@ -282,6 +283,7 @@ no_valid_gl_display:
|
||||||
gst_object_replace (&plugin->gl_other_context, NULL);
|
gst_object_replace (&plugin->gl_other_context, NULL);
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
gboolean
|
gboolean
|
||||||
|
|
Loading…
Reference in a new issue