mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2024-07-04 13:45:52 +00:00
msdk: Fix warning about unused variable on Windows
This commit is contained in:
parent
c0d778c2c7
commit
e83d5fd8d6
|
@ -1411,7 +1411,9 @@ gst_msdkenc_get_surface_from_frame (GstMsdkEnc * thiz,
|
||||||
GstVideoFrame src_frame, out_frame;
|
GstVideoFrame src_frame, out_frame;
|
||||||
MsdkSurface *msdk_surface;
|
MsdkSurface *msdk_surface;
|
||||||
GstBuffer *inbuf;
|
GstBuffer *inbuf;
|
||||||
|
#ifndef _WIN32
|
||||||
GstMemory *mem = NULL;
|
GstMemory *mem = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
inbuf = frame->input_buffer;
|
inbuf = frame->input_buffer;
|
||||||
if (gst_msdk_is_msdk_buffer (inbuf)) {
|
if (gst_msdk_is_msdk_buffer (inbuf)) {
|
||||||
|
|
|
@ -650,7 +650,9 @@ get_msdk_surface_from_input_buffer (GstMsdkVPP * thiz, GstBuffer * inbuf)
|
||||||
{
|
{
|
||||||
GstVideoFrame src_frame, out_frame;
|
GstVideoFrame src_frame, out_frame;
|
||||||
MsdkSurface *msdk_surface;
|
MsdkSurface *msdk_surface;
|
||||||
|
#ifndef _WIN32
|
||||||
GstMemory *mem = NULL;
|
GstMemory *mem = NULL;
|
||||||
|
#endif
|
||||||
|
|
||||||
if (gst_msdk_is_msdk_buffer (inbuf)) {
|
if (gst_msdk_is_msdk_buffer (inbuf)) {
|
||||||
msdk_surface = g_slice_new0 (MsdkSurface);
|
msdk_surface = g_slice_new0 (MsdkSurface);
|
||||||
|
|
Loading…
Reference in a new issue