Commit 3a7e596a authored by Eike Hein's avatar Eike Hein

Merge branch 'fix1' into 'master'

main: Check if there is item before setWindow call for player

See merge request !4
parents e103b4fa 46df5a68
......@@ -129,6 +129,11 @@ int main(int argc, char *argv[])
<< QStringLiteral("android.permission.ACCESS_FINE_LOCATION"), &app)));
engine.load(QUrl(QStringLiteral("qrc:///main.qml")));
if(engine.rootObjects().isEmpty()) {
qCritical() << "Application failed to load.";
gst_deinit();
return -1;
}
videoPlayer->setWindow(qobject_cast<QQuickWindow *>(engine.rootObjects().first()));
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment