From 3c3dd84c51c75f2bced5bcf96ad83920bfffe86b Mon Sep 17 00:00:00 2001 From: Javier Date: Sun, 19 Sep 2021 22:45:18 +0200 Subject: workaround for qt 5.11 --- README.md | 1 + mainwindow.cc | 3 ++- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 2ddee0e..9fca1dc 100644 --- a/README.md +++ b/README.md @@ -20,6 +20,7 @@ For example, on Ubuntu, these correspond with packages: qtbase5-dev libqt5svg5-dev qtmultimedia5-dev +libqt5multimedia5-plugins libudev-dev libopenobex2-dev libusb-1.0-0-dev diff --git a/mainwindow.cc b/mainwindow.cc index b66423a..cf1ef1a 100644 --- a/mainwindow.cc +++ b/mainwindow.cc @@ -456,7 +456,8 @@ QString MainWindow::formatDuration(qint64 time) const } } +QT_WARNING_DISABLE_DEPRECATED QString MainWindow::currentPlayerMediaPath() const { - return _player->media().request().url().toLocalFile(); + return _player->media().canonicalUrl().toLocalFile(); } -- cgit v1.2.3