v4l2object: update match_buffer_layout() debug messages
authorGuillaume Desmottes <guillaume.desmottes@collabora.com>
Sat, 25 May 2019 19:19:21 +0000 (21:19 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.com>
Tue, 5 Nov 2019 09:24:40 +0000 (14:54 +0530)
It's no longer used only to try importing buffers.

sys/v4l2/gstv4l2object.c

index 4ab0815..04d118c 100644 (file)
@@ -4322,14 +4322,14 @@ gst_v4l2_object_match_buffer_layout (GstV4l2Object * obj, guint n_planes,
 
   if (n_planes != GST_VIDEO_INFO_N_PLANES (&obj->info)) {
     GST_WARNING_OBJECT (obj->dbg_obj,
-        "Cannot import buffers with different number planes");
+        "Cannot match buffers with different number planes");
     return FALSE;
   }
 
   for (p = 0; p < n_planes; p++) {
     if (stride[p] < obj->info.stride[p]) {
       GST_DEBUG_OBJECT (obj->dbg_obj,
-          "Not importing as remote stride %i is smaller than %i on plane %u",
+          "Not matching as remote stride %i is smaller than %i on plane %u",
           stride[p], obj->info.stride[p], p);
       return FALSE;
     } else if (stride[p] > obj->info.stride[p]) {
@@ -4341,7 +4341,7 @@ gst_v4l2_object_match_buffer_layout (GstV4l2Object * obj, guint n_planes,
 
     if (offset[p] < obj->info.offset[p]) {
       GST_DEBUG_OBJECT (obj->dbg_obj,
-          "Not importing as offset %" G_GSIZE_FORMAT
+          "Not matching as offset %" G_GSIZE_FORMAT
           " is smaller than %" G_GSIZE_FORMAT " on plane %u",
           offset[p], obj->info.offset[p], p);
       return FALSE;