Commit c7ebba70 authored by Aleix Pol Gonzalez's avatar Aleix Pol Gonzalez 🐧
Browse files

pipewire: only activate when the item is visible

Makes sure we're not streaming into an item that will just ignore what
it receives.
parent 9eae0839
......@@ -80,7 +80,7 @@ void PipeWireSourceItem::itemChange(QQuickItem::ItemChange change, const QQuickI
switch (change) {
case ItemVisibleHasChanged:
if (m_stream)
m_stream->setActive(data.boolValue && isComponentComplete());
m_stream->setActive(isVisible() && data.boolValue && isComponentComplete());
case ItemSceneChange:
m_needsRecreateTexture = true;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment