From: Nirbheek Chauhan Date: Fri, 17 Jan 2020 04:43:49 +0000 (+0530) Subject: msdk: Fix warning about unused variable on Windows X-Git-Tag: 1.19.3~507^2~2394 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=e83d5fd8d678c7647c9ae919c2d3682a5c258673;p=platform%2Fupstream%2Fgstreamer.git msdk: Fix warning about unused variable on Windows --- diff --git a/sys/msdk/gstmsdkenc.c b/sys/msdk/gstmsdkenc.c index 943ae1d..b10d54d 100644 --- a/sys/msdk/gstmsdkenc.c +++ b/sys/msdk/gstmsdkenc.c @@ -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)) { diff --git a/sys/msdk/gstmsdkvpp.c b/sys/msdk/gstmsdkvpp.c index b39d133..191104d 100644 --- a/sys/msdk/gstmsdkvpp.c +++ b/sys/msdk/gstmsdkvpp.c @@ -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);