summaryrefslogtreecommitdiffstats
path: root/src/multimedia/video/qvideotexturehelper.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/multimedia/video/qvideotexturehelper.cpp')
-rw-r--r--src/multimedia/video/qvideotexturehelper.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/multimedia/video/qvideotexturehelper.cpp b/src/multimedia/video/qvideotexturehelper.cpp
index f91ed3daa..a0a87b24a 100644
--- a/src/multimedia/video/qvideotexturehelper.cpp
+++ b/src/multimedia/video/qvideotexturehelper.cpp
@@ -631,11 +631,11 @@ static bool updateTextureWithMap(QVideoFrame frame, QRhi *rhi, QRhiResourceUpdat
} else {
const auto frameBits = reinterpret_cast<const char *>(frame.bits(plane));
const auto mappedBytes = frame.mappedBytes(plane);
- auto underlyingByteArray = frame.videoBuffer()->underlyingByteArray(plane);
+ const auto underlyingByteArray = frame.videoBuffer()->underlyingByteArray(plane);
if (underlyingByteArray.size() == mappedBytes) {
Q_ASSERT(underlyingByteArray.constData() == frameBits);
- subresDesc.setData(std::move(underlyingByteArray));
+ subresDesc.setData(underlyingByteArray);
}
else {
subresDesc.setData(QByteArray::fromRawData(frameBits, mappedBytes));