mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-01-13 02:45:35 +00:00
gldownloadelement: fix build with msvc
msvc doesn't like #ifdef inside macro expansion
This commit is contained in:
parent
e4bf9ed8f0
commit
4bd93dc4d8
1 changed files with 7 additions and 3 deletions
|
@ -54,14 +54,18 @@ static gboolean gst_gl_download_element_decide_allocation (GstBaseTransform *
|
|||
trans, GstQuery * query);
|
||||
static void gst_gl_download_element_finalize (GObject * object);
|
||||
|
||||
#if GST_GL_HAVE_PLATFORM_EGL && GST_GL_HAVE_DMABUF
|
||||
#define EXTRA_CAPS_TEMPLATE "video/x-raw(" GST_CAPS_FEATURE_MEMORY_DMABUF "); "
|
||||
#else
|
||||
#define EXTRA_CAPS_TEMPLATE
|
||||
#endif
|
||||
|
||||
static GstStaticPadTemplate gst_gl_download_element_src_pad_template =
|
||||
GST_STATIC_PAD_TEMPLATE ("src",
|
||||
GST_PAD_SRC,
|
||||
GST_PAD_ALWAYS,
|
||||
GST_STATIC_CAPS (
|
||||
#if GST_GL_HAVE_PLATFORM_EGL && GST_GL_HAVE_DMABUF
|
||||
"video/x-raw(" GST_CAPS_FEATURE_MEMORY_DMABUF "); "
|
||||
#endif
|
||||
EXTRA_CAPS_TEMPLATE
|
||||
"video/x-raw; video/x-raw(memory:GLMemory)"));
|
||||
|
||||
static GstStaticPadTemplate gst_gl_download_element_sink_pad_template =
|
||||
|
|
Loading…
Reference in a new issue