video: pool: Fix pool size configuration for DMA DRM
Now that VideoPool accept DMA DRM, it is quite likely that the size does not get provided in the configuration even if the format have a matching GstVideoFormat. Fix this by reporting back the minimum expected size in the configuration. This allows the configuration handshake to succeed. Fixes regression caused by !9345 Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/9600>
This commit is contained in:
parent
5e995b2b21
commit
7205433549
@ -237,6 +237,8 @@ wrong_size:
|
||||
GST_WARNING_OBJECT (pool,
|
||||
"Provided size is to small for the caps: %u < %" G_GSIZE_FORMAT, size,
|
||||
info.size);
|
||||
gst_buffer_pool_config_set_params (config, caps, info.size, min_buffers,
|
||||
max_buffers);
|
||||
return FALSE;
|
||||
}
|
||||
failed_to_align:
|
||||
|
Loading…
x
Reference in New Issue
Block a user