videopool: display expected size in warning message
authorGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 9 Jul 2018 08:48:54 +0000 (10:48 +0200)
committerGuillaume Desmottes <guillaume.desmottes@collabora.co.uk>
Mon, 9 Jul 2018 09:21:50 +0000 (11:21 +0200)
Display the size computed from the caps when rejecting a pool
configuration because the buffer size is too small.

https://bugzilla.gnome.org/show_bug.cgi?id=796768

gst-libs/gst/video/gstvideopool.c

index 1b919fd..30d271e 100644 (file)
@@ -221,7 +221,8 @@ wrong_caps:
 wrong_size:
   {
     GST_WARNING_OBJECT (pool,
-        "Provided size is to small for the caps: %u", size);
+        "Provided size is to small for the caps: %u < %" G_GSIZE_FORMAT, size,
+        info.size);
     return FALSE;
   }
 failed_to_align: