videometa: Log map errors with GST_ERROR, not DEBUG
authorNirbheek Chauhan <nirbheek@centricular.com>
Mon, 15 Oct 2018 14:15:46 +0000 (19:45 +0530)
committerNirbheek Chauhan <nirbheek@centricular.com>
Mon, 15 Oct 2018 14:16:48 +0000 (19:46 +0530)
Otherwise it's very easy to miss them when gst_video_frame_map() fails

gst-libs/gst/video/gstvideometa.c

index 278e762..0ebe1b4 100644 (file)
@@ -237,12 +237,12 @@ default_map (GstVideoMeta * meta, guint plane, GstMapInfo * info,
   /* ERRORS */
 no_memory:
   {
-    GST_DEBUG ("plane %u, no memory at offset %" G_GSIZE_FORMAT, plane, offset);
+    GST_ERROR ("plane %u, no memory at offset %" G_GSIZE_FORMAT, plane, offset);
     return FALSE;
   }
 cannot_map:
   {
-    GST_DEBUG ("cannot map memory range %u-%u", idx, length);
+    GST_ERROR ("cannot map memory range %u-%u", idx, length);
     return FALSE;
   }
 }