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:
David Edmundson 2023-07-06 11:59:18 +01:00 committed by Vlad Zahorodnii
parent d215dac888
commit 0fa0ffd212

View file

@ -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;
}