screencast: Don't pass modifierFlags to buildFormat when we're not using modifiers
The modifier flags are ignored if we're not setting modifiers. This won't result in a behaviour change, it's a readability cleanup.
This commit is contained in:
parent
d215dac888
commit
0fa0ffd212
1 changed files with 1 additions and 1 deletions
|
@ -754,7 +754,7 @@ QVector<const spa_pod *> ScreenCastStream::buildFormats(bool fixate, char buffer
|
|||
if (m_hasDmaBuf) {
|
||||
params.append(buildFormat(&podBuilder, SPA_VIDEO_FORMAT_BGRA, &resolution, &defFramerate, &minFramerate, &maxFramerate, m_modifiers, SPA_POD_PROP_FLAG_MANDATORY | SPA_POD_PROP_FLAG_DONT_FIXATE));
|
||||
}
|
||||
params.append(buildFormat(&podBuilder, format, &resolution, &defFramerate, &minFramerate, &maxFramerate, {}, SPA_POD_PROP_FLAG_MANDATORY | SPA_POD_PROP_FLAG_DONT_FIXATE));
|
||||
params.append(buildFormat(&podBuilder, format, &resolution, &defFramerate, &minFramerate, &maxFramerate, {}, 0));
|
||||
return params;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue