qml6glsrc: update buffer pool on renegotiation

When dynamic caps change in the pipeline leads to a new buffer pool
getting negotiated, the change is not propagated to Qt6GLWindow, which
keeps using the old, now defunct, pool.

Unset current pool on Qt6GLWindow in decide_allocation(). This will
trigger a switch to the new pool inside create().

Part-of: <https://gitlab.freedesktop.org/gstreamer/gstreamer/-/merge_requests/8676>
This commit is contained in:
Jakub Adam 2025-03-21 02:16:58 +01:00 committed by GStreamer Marge Bot
parent c2be97d591
commit 5aaa4c2c5a

View File

@ -423,6 +423,9 @@ gst_qml6_gl_src_decide_allocation (GstBaseSrc * bsrc, GstQuery * query)
else
gst_query_add_allocation_pool (query, pool, size, min, max);
/* invalidate current pool, will switch to the new one in create() */
qt6_gl_window_set_pool (qt_src->window, NULL);
gst_object_unref (pool);
GST_INFO_OBJECT (qt_src, "successfully decide_allocation");