msdk: Fix warning about unused variable on Windows
authorNirbheek Chauhan <nirbheek@centricular.com>
Fri, 17 Jan 2020 04:43:49 +0000 (10:13 +0530)
committerHaihao Xiang <haihao.xiang@intel.com>
Tue, 21 Jan 2020 00:38:41 +0000 (00:38 +0000)
sys/msdk/gstmsdkenc.c
sys/msdk/gstmsdkvpp.c

index 943ae1d..b10d54d 100644 (file)
@@ -1411,7 +1411,9 @@ gst_msdkenc_get_surface_from_frame (GstMsdkEnc * thiz,
   GstVideoFrame src_frame, out_frame;
   MsdkSurface *msdk_surface;
   GstBuffer *inbuf;
+#ifndef _WIN32
   GstMemory *mem = NULL;
+#endif
 
   inbuf = frame->input_buffer;
   if (gst_msdk_is_msdk_buffer (inbuf)) {
index b39d133..191104d 100644 (file)
@@ -650,7 +650,9 @@ get_msdk_surface_from_input_buffer (GstMsdkVPP * thiz, GstBuffer * inbuf)
 {
   GstVideoFrame src_frame, out_frame;
   MsdkSurface *msdk_surface;
+#ifndef _WIN32
   GstMemory *mem = NULL;
+#endif
 
   if (gst_msdk_is_msdk_buffer (inbuf)) {
     msdk_surface = g_slice_new0 (MsdkSurface);