screencast: Properly detect the fallback
Do not check an it that is the container's end()
This commit is contained in:
parent
bacc35c236
commit
1cbc9185fb
1 changed files with 1 additions and 1 deletions
|
@ -345,7 +345,7 @@ bool ScreenCastStream::createStream()
|
|||
// If the offered format is not available for dmabuf, prefer converting to another one than resorting to memfd
|
||||
if (itModifiers == supported.constEnd() && !supported.isEmpty()) {
|
||||
itModifiers = supported.constFind(DRM_FORMAT_ARGB8888);
|
||||
if (itModifiers == supported.constEnd()) {
|
||||
if (itModifiers != supported.constEnd()) {
|
||||
m_drmFormat = itModifiers.key();
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue