cuda: Fix typo in gst_cuda_buffery_copy_type_to_string
authorThibault Saunier <tsaunier@igalia.com>
Wed, 13 Apr 2022 19:23:56 +0000 (15:23 -0400)
committerGStreamer Marge Bot <gitlab-merge-bot@gstreamer-foundation.org>
Tue, 19 Apr 2022 16:39:43 +0000 (16:39 +0000)
Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/1472>

subprojects/gst-plugins-bad/gst-libs/gst/cuda/gstcudautils.c
subprojects/gst-plugins-bad/gst-libs/gst/cuda/gstcudautils.h
subprojects/gst-plugins-bad/sys/nvcodec/gstcudamemorycopy.c

index 0447647..2fcf1db 100644 (file)
@@ -692,7 +692,7 @@ gst_cuda_graphics_resource_free (GstCudaGraphicsResource * resource)
 }
 
 const gchar *
-gst_cuda_buffery_copy_type_to_string (GstCudaBufferCopyType type)
+gst_cuda_buffer_copy_type_to_string (GstCudaBufferCopyType type)
 {
   switch (type) {
     case GST_CUDA_BUFFER_COPY_SYSTEM:
@@ -1528,7 +1528,7 @@ gst_cuda_buffer_copy (GstBuffer * dst, GstCudaBufferCopyType dst_type,
       cuda_context = GST_CUDA_MEMORY_CAST (dst_mem)->context;
 
     GST_TRACE_OBJECT (context, "GL -> %s",
-        gst_cuda_buffery_copy_type_to_string (dst_type));
+        gst_cuda_buffer_copy_type_to_string (dst_type));
 
     return cuda_copy_gl_interop (dst, dst_info, src, src_info, gl_context,
         cuda_context, stream, TRUE, dst_type);
@@ -1543,7 +1543,7 @@ gst_cuda_buffer_copy (GstBuffer * dst, GstCudaBufferCopyType dst_type,
       cuda_context = GST_CUDA_MEMORY_CAST (src_mem)->context;
 
     GST_TRACE_OBJECT (context, "%s -> GL",
-        gst_cuda_buffery_copy_type_to_string (src_type));
+        gst_cuda_buffer_copy_type_to_string (src_type));
 
     return cuda_copy_gl_interop (dst, dst_info, src, src_info, gl_context,
         cuda_context, stream, FALSE, src_type);
@@ -1597,8 +1597,8 @@ gst_cuda_buffer_copy (GstBuffer * dst, GstCudaBufferCopyType dst_type,
   }
 
   GST_TRACE_OBJECT (context, "%s -> %s",
-      gst_cuda_buffery_copy_type_to_string (src_type),
-      gst_cuda_buffery_copy_type_to_string (dst_type));
+      gst_cuda_buffer_copy_type_to_string (src_type),
+      gst_cuda_buffer_copy_type_to_string (dst_type));
 
   return gst_cuda_buffer_copy_internal (dst, dst_type, dst_info,
       src, src_type, src_info, cuda_context, stream);
index 06e94e6..8ade84d 100644 (file)
@@ -204,7 +204,7 @@ typedef enum
 } GstCudaBufferCopyType;
 
 /**
- * gst_cuda_buffery_copy_type_to_string:
+ * gst_cuda_buffer_copy_type_to_string:
  * @type: The #GstCudaBufferCopyType to get name from
  *
  * Returns: The human readable name of @type
@@ -212,7 +212,7 @@ typedef enum
  * Since: 1.22
  */
 GST_CUDA_API
-const gchar * gst_cuda_buffery_copy_type_to_string (GstCudaBufferCopyType type);
+const gchar * gst_cuda_buffer_copy_type_to_string (GstCudaBufferCopyType type);
 
 /**
  * gst_cuda_buffer_copy:
index b362cd4..a7ded4c 100644 (file)
@@ -867,8 +867,8 @@ gst_cuda_memory_copy_transform (GstBaseTransform * trans, GstBuffer * inbuf,
 
     GST_LOG_OBJECT (self,
         "Copy %s -> %s failed, checking whether fallback is possible",
-        gst_cuda_buffery_copy_type_to_string (in_type),
-        gst_cuda_buffery_copy_type_to_string (out_type));
+        gst_cuda_buffer_copy_type_to_string (in_type),
+        gst_cuda_buffer_copy_type_to_string (out_type));
 
     switch (in_type) {
       case GST_CUDA_BUFFER_COPY_GL:
@@ -890,15 +890,15 @@ gst_cuda_memory_copy_transform (GstBaseTransform * trans, GstBuffer * inbuf,
 
     if (in_type == fallback_in_type && out_type == fallback_out_type) {
       GST_ERROR_OBJECT (self, "Failed to copy %s -> %s",
-          gst_cuda_buffery_copy_type_to_string (in_type),
-          gst_cuda_buffery_copy_type_to_string (out_type));
+          gst_cuda_buffer_copy_type_to_string (in_type),
+          gst_cuda_buffer_copy_type_to_string (out_type));
 
       return GST_FLOW_ERROR;
     }
 
     GST_LOG_OBJECT (self, "Trying %s -> %s fallback",
-        gst_cuda_buffery_copy_type_to_string (fallback_in_type),
-        gst_cuda_buffery_copy_type_to_string (fallback_out_type));
+        gst_cuda_buffer_copy_type_to_string (fallback_in_type),
+        gst_cuda_buffer_copy_type_to_string (fallback_out_type));
 
     ret = gst_cuda_buffer_copy (outbuf, fallback_out_type, out_info, inbuf,
         fallback_in_type, in_info, ctrans->context, ctrans->cuda_stream);
@@ -922,8 +922,8 @@ gst_cuda_memory_copy_transform (GstBaseTransform * trans, GstBuffer * inbuf,
     return GST_FLOW_OK;
 
   GST_ERROR_OBJECT (self, "Failed to copy %s -> %s",
-      gst_cuda_buffery_copy_type_to_string (in_type),
-      gst_cuda_buffery_copy_type_to_string (out_type));
+      gst_cuda_buffer_copy_type_to_string (in_type),
+      gst_cuda_buffer_copy_type_to_string (out_type));
 
   return GST_FLOW_ERROR;
 }