X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=mainwindow.cpp;h=5a1b7456cd90e6d701a6e9479d88504fe8353b6c;hb=9e95c15a6754fa571199c36d73ac2dc1d45e5c64;hp=7eec2cb4d2b8767aa89542edef5941c9827dbea1;hpb=5ccdfdea87f84fcc4d6c981a88dacd1127ab7106;p=pkanalytics diff --git a/mainwindow.cpp b/mainwindow.cpp index 7eec2cb..5a1b745 100644 --- a/mainwindow.cpp +++ b/mainwindow.cpp @@ -42,7 +42,10 @@ MainWindow::MainWindow(EventsModel *events, PlayersModel *players, ui = new Ui::MainWindow; ui->setupUi(this); - ui->video->open("/home/sesse/dev/stats/ultimate-prores.mkv"); + if (!ui->video->open("/home/sesse/dev/stats/ultimate-prores.mkv")) { + // TODO: Pop up a dialog box here instead + fprintf(stderr, "WARNING: Video opening failed\n"); + } ui->video->play(); ui->event_view->setModel(events);