nodes: fixed hashing issues

This commit is contained in:
itsmattkc
2021-04-11 18:54:22 +10:00
parent f9b60538fc
commit 210eb86cd2
8 changed files with 32 additions and 22 deletions
+2 -2
View File
@@ -79,7 +79,7 @@ RenderManager::~RenderManager()
}
}
QByteArray RenderManager::Hash(const Node *n, const VideoParams &params, const rational &time)
QByteArray RenderManager::Hash(const Node *n, const QString& output, const VideoParams &params, const rational &time)
{
QCryptographicHash hasher(QCryptographicHash::Sha1);
@@ -93,7 +93,7 @@ QByteArray RenderManager::Hash(const Node *n, const VideoParams &params, const r
hasher.addData(reinterpret_cast<const char*>(&format), sizeof(VideoParams::Format));
if (n) {
n->Hash(Node::kDefaultOutput, hasher, time);
n->Hash(output, hasher, time);
}
return hasher.result();