From e51fedeffb6a9281e096e4aca9d1307a0766adc0 Mon Sep 17 00:00:00 2001 From: Xavier Hallade Date: Tue, 15 May 2018 15:40:28 +0200 Subject: [PATCH] skip dma buffer binding code for windows builds Signed-off-by: Xavier Hallade --- gst/mfx/gstmfxpluginbase.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/gst/mfx/gstmfxpluginbase.c b/gst/mfx/gstmfxpluginbase.c index 2097374e..7beeb88b 100644 --- a/gst/mfx/gstmfxpluginbase.c +++ b/gst/mfx/gstmfxpluginbase.c @@ -748,12 +748,14 @@ gst_mfx_plugin_base_get_input_buffer (GstMfxPluginBase * plugin, &outbuf, NULL) != GST_FLOW_OK) goto error_create_buffer; +#ifdef WITH_LIBVA_BACKEND if (is_dma_buffer (inbuf)) { if (!plugin_bind_dma_to_mfx_buffer (plugin, inbuf, outbuf)) goto error_bind_dma_buffer; plugin->has_ext_dmabuf = TRUE; goto done; } +#endif if (!gst_video_frame_map (&src_frame, &plugin->sinkpad_info, inbuf, GST_MAP_READ))