qml: keep the same logic as other video renderers