Skip to content

plugins/screencast: Avoid resetting m_dmabufParams when resizing the stream

Vlad Zahorodnii requested to merge work/cherry-pick-e2611d71 into Plasma/6.0

ScreenCastStream::onStreamAddBuffer() can be called before the stream params are updated. This is problematic because that function expects a valid m_dmabufParams.

The reason why m_dmabufParams is reset is to force the onStreamParamChanged() function to check whether dmabufs can be still allocated with the new size.

(cherry picked from commit e2611d71)

Merge request reports

Loading