From 173e2d8db3abc26be90d881ef28ae6f87415ba75 Mon Sep 17 00:00:00 2001 From: Guillaume Desmottes Date: Mon, 9 Jul 2018 10:48:54 +0200 Subject: [PATCH] videopool: display expected size in warning message 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 | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/gst-libs/gst/video/gstvideopool.c b/gst-libs/gst/video/gstvideopool.c index 1b919fd061..30d271ed28 100644 --- a/gst-libs/gst/video/gstvideopool.c +++ b/gst-libs/gst/video/gstvideopool.c @@ -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: