summaryrefslogtreecommitdiffstats
path: root/tests/manual/qml-minimal-camera/qml-minimal-camera.cpp
diff options
context:
space:
mode:
authorLars Sutterud <[email protected]>2025-07-11 16:09:26 +0200
committerLars Sutterud <[email protected]>2025-08-22 20:59:05 +0200
commit7f98bb6a3a9da30cded752b14acd574a3ad151d4 (patch)
tree1aaa680d007390ddf7d0422d7b64174a01d016f8 /tests/manual/qml-minimal-camera/qml-minimal-camera.cpp
parentfb65aa251c75c380bb1f2594f8a09ab53fe113e4 (diff)
Keep previous QVideoFrameTextures alive until next frame is renderedHEADdev
In cases where rhi.currentFrameSlot always returns 1, our call to QVideoTextureHelper::createTextures deletes the previous textures, which frees the associated memory buffer in case of dma-buf rendering. On imx6 this caused tearing artifacts because the decoder started writing a new frame to the same buffer, which could still be read from at this point. Fixed by moving the old textures to a member variable which is reset when the new textures have been rendered. Pick-to: 6.10 6.9 6.8 Change-Id: I16c757b8b201eb60dab7c51a83948cf661eab5a7 Reviewed-by: Artem Dyomin <[email protected]> Reviewed-by: Tim Blechmann <[email protected]>
Diffstat (limited to 'tests/manual/qml-minimal-camera/qml-minimal-camera.cpp')
0 files changed, 0 insertions, 0 deletions