cudamemorycopy: Fix build when gl is disabled
authorSeungha Yang <seungha@centricular.com>
Mon, 7 Mar 2022 09:59:37 +0000 (18:59 +0900)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Mon, 7 Mar 2022 10:22:21 +0000 (10:22 +0000)
Fixes: https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/issues/1707
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1868>

subprojects/gst-plugins-bad/sys/nvcodec/gstcudamemorycopy.c

index c165090..cc4c111 100644 (file)
@@ -908,8 +908,9 @@ gst_cuda_memory_copy_transform (GstBaseTransform * trans, GstBuffer * inbuf,
 
     ret = gst_cuda_memory_copy_gl_interop (self, inbuf, in_info,
         outbuf, out_info, context, FALSE);
-  } else {
+  } else
 #endif
+  {
     GST_TRACE_OBJECT (self, "CUDA <-> SYSTEM");
 
     ret = gst_cuda_memory_copy_transform_cuda (self, inbuf, in_info, in_cuda,