mirror of
https://github.com/overte-org/overte.git
synced 2025-08-09 05:58:27 +02:00
fix crash in recording playback when clip loader fails
This commit is contained in:
parent
05995163cf
commit
618f37eb06
1 changed files with 5 additions and 0 deletions
|
@ -56,6 +56,11 @@ bool RecordingScriptingInterface::loadRecording(const QString& url) {
|
|||
using namespace recording;
|
||||
|
||||
auto loader = ClipCache::instance().getClipLoader(url);
|
||||
if (!loader) {
|
||||
qWarning() << "Clip failed to load from " << url;
|
||||
return false;
|
||||
}
|
||||
|
||||
if (!loader->isLoaded()) {
|
||||
QEventLoop loop;
|
||||
QObject::connect(loader.data(), &Resource::loaded, &loop, &QEventLoop::quit);
|
||||
|
|
Loading…
Reference in a new issue