mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 19:05:37 +00:00
plugins: fix compilation when EGL/GLX is disabled
The compiler might complain of gst_vaapi_create_display_from_handle() being unused if both EGL and GLX are disabled. This patch avoid that compilation error.
This commit is contained in:
parent
1e32d62c1e
commit
f61b728ae1
1 changed files with 2 additions and 0 deletions
|
@ -103,6 +103,7 @@ gst_vaapi_create_display (GstVaapiDisplayType display_type,
|
||||||
return display;
|
return display;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#if USE_GST_GL_HELPERS
|
||||||
static GstVaapiDisplay *
|
static GstVaapiDisplay *
|
||||||
gst_vaapi_create_display_from_handle (GstVaapiDisplayType display_type,
|
gst_vaapi_create_display_from_handle (GstVaapiDisplayType display_type,
|
||||||
gpointer handle)
|
gpointer handle)
|
||||||
|
@ -122,6 +123,7 @@ gst_vaapi_create_display_from_handle (GstVaapiDisplayType display_type,
|
||||||
}
|
}
|
||||||
return NULL;
|
return NULL;
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
static GstVaapiDisplay *
|
static GstVaapiDisplay *
|
||||||
gst_vaapi_create_display_from_gl_context (GstObject * gl_context_object)
|
gst_vaapi_create_display_from_gl_context (GstObject * gl_context_object)
|
||||||
|
|
Loading…
Reference in a new issue