From 2e5fee17a3567cc5841b02fe3d8d92334ac97099 Mon Sep 17 00:00:00 2001 From: Seungha Yang Date: Sun, 22 Mar 2020 22:30:15 +0900 Subject: [PATCH] msdkbufferpool: Fix build warning on Windows gstmsdkbufferpool.c(274): warning C4101: 'fd': unreferenced local variable --- sys/msdk/gstmsdkbufferpool.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sys/msdk/gstmsdkbufferpool.c b/sys/msdk/gstmsdkbufferpool.c index 4d8ad3bace..465800f16c 100644 --- a/sys/msdk/gstmsdkbufferpool.c +++ b/sys/msdk/gstmsdkbufferpool.c @@ -271,7 +271,6 @@ gst_msdk_buffer_pool_acquire_buffer (GstBufferPool * pool, GstBuffer *buf = NULL; GstFlowReturn ret; mfxFrameSurface1 *surface; - gint fd; ret = GST_BUFFER_POOL_CLASS (parent_class)->acquire_buffer (pool, &buf, params); @@ -302,6 +301,7 @@ gst_msdk_buffer_pool_acquire_buffer (GstBufferPool * pool, * between surface and memory. */ if (priv->memory_type == GST_MSDK_MEMORY_TYPE_DMABUF) { + gint fd; surface = gst_msdk_get_surface_from_buffer (buf); gst_msdk_get_dmabuf_info_from_surface (surface, &fd, NULL);