mirror of
https://gitlab.freedesktop.org/gstreamer/gstreamer.git
synced 2025-03-30 12:49:40 +00:00
va: basedec: Create the other pool anyway.
Fix a bug in _create_other_pool(). The old way of checking the base->other_pool make that other_pool never be changed until the gst_va_base_dec_stop() to stop the current decoding context. But in some stream, the resolution may change during the decoding process, and we need to re-negotiate the buffer pool. Then, the old other_pool can not be clean correctly and the new correct one can not be created. Part-of: <https://gitlab.freedesktop.org/gstreamer/gst-plugins-bad/-/merge_requests/1692>
This commit is contained in:
parent
ee739003e8
commit
4af33eda76
1 changed files with 1 additions and 2 deletions
|
@ -181,8 +181,7 @@ _create_other_pool (GstVaBaseDec * base, GstAllocator * allocator,
|
|||
GstBufferPool *pool;
|
||||
GstStructure *config;
|
||||
|
||||
if (base->other_pool)
|
||||
return;
|
||||
gst_clear_object (&base->other_pool);
|
||||
|
||||
GST_DEBUG_OBJECT (base, "making new other pool for copy");
|
||||
|
||||
|
|
Loading…
Reference in a new issue