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
This commit is contained in:
Guillaume Desmottes 2018-07-09 10:48:54 +02:00
parent 28e5f81021
commit 173e2d8db3

View 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: