linuxdmabuf: fix sending default tranches
Only the first one was getting sent
This commit is contained in:
parent
afc2a1c0aa
commit
a011fe74b2
1 changed files with 5 additions and 2 deletions
|
@ -491,8 +491,11 @@ void LinuxDmaBufV1FeedbackPrivate::send(Resource *resource)
|
||||||
sendTranche(tranche);
|
sendTranche(tranche);
|
||||||
}
|
}
|
||||||
// send default hints as the last fallback tranche
|
// send default hints as the last fallback tranche
|
||||||
if (this != get(m_bufferintegration->defaultFeedback.data())) {
|
const auto defaultFeedbackPrivate = get(m_bufferintegration->defaultFeedback.data());
|
||||||
sendTranche(get(m_bufferintegration->defaultFeedback.data())->m_tranches[0]);
|
if (this != defaultFeedbackPrivate) {
|
||||||
|
for (const auto &tranche : qAsConst(defaultFeedbackPrivate->m_tranches)) {
|
||||||
|
sendTranche(tranche);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
send_done(resource->handle);
|
send_done(resource->handle);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue