diff options
author | Lorn Potter <lorn.potter@gmail.com> | 2024-03-15 14:23:11 +1000 |
---|---|---|
committer | Lorn Potter <lorn.potter@gmail.com> | 2024-04-15 10:47:01 +1000 |
commit | 841fe1e93b38cbfc4af78e6135501cda143161e5 (patch) | |
tree | d5945110326eddb1164099d5ed83f96b0ffad104 /src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp | |
parent | b42a5d00b8977e5be05ebabe15d0a6ca6a4ce9d1 (diff) |
wasm: fix camera showing in declarative
Wait for camera to become found before trying to make it active
Fixes: QTBUG-112316
Pick-to: 6.7
Change-Id: Ic68c48be03909dbac11cf92d75387e25c74d573e
Reviewed-by: Morten Johan Sørvig <morten.sorvig@qt.io>
Diffstat (limited to 'src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp')
-rw-r--r-- | src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp b/src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp index 452ea28f8..41b4208d3 100644 --- a/src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp +++ b/src/plugins/multimedia/wasm/common/qwasmvideooutput.cpp @@ -232,7 +232,7 @@ void QWasmVideoOutput::setSource(const QUrl &url) if (url.isLocalFile()) { QFile localFile(url.toLocalFile()); if (localFile.open(QIODevice::ReadOnly)) { - QDataStream buffer(&localFile); // we will serialize the data into the file + QDataStream buffer(&localFile); // we will serialize the data into the file setSource(buffer.device()); } else { qWarning() << "Failed to open file"; |