Skip to content

msdk: Update GstVideoInfo of each msdk allocator per buffer_pool_set_config()

msdkenc: Use the GstVideoInfo of corresponding msdk pool

... instead of msdkenc's own info. The aligned_info stored in
msdkenc might be updated again during propose_allocation(). So there can
be mismatch between GstVideoInfo of internal msdk pool and msdk's own
info.
msdkdec: Do not set uninitialized alignment parameter to pool
msdk: Update GstVideoInfo of each msdk allocator per buffer_pool_set_config()

Update GstVideoInfo stored in each msdk allocator per buffer_pool_set_config() and 
also the msdk buffer pool should keep track of the GstVideoInfo since
it will be used later by msdk elements.

Another change introduced here is to respect padding/alignment requirement
of other elements. i.e., Upstream might want larger padding and stride alignment
than that of msdk.
This commit will fix mismatched resolution, stride and padding
around caps/videometa/videoinfo.
Edited by Seungha Yang

Merge request reports

Loading