diff options
Diffstat (limited to 'tests/auto/integration/shared/mediafileselector.h')
-rw-r--r-- | tests/auto/integration/shared/mediafileselector.h | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tests/auto/integration/shared/mediafileselector.h b/tests/auto/integration/shared/mediafileselector.h index a0b8bc681..b12cb6525 100644 --- a/tests/auto/integration/shared/mediafileselector.h +++ b/tests/auto/integration/shared/mediafileselector.h @@ -43,13 +43,13 @@ static QUrl selectMediaFile(const QStringList& mediaCandidates) { QMediaPlayer player; - QSignalSpy errorSpy(&player, SIGNAL(error(QMediaPlayer::Error))); + QSignalSpy errorSpy(&player, SIGNAL(errorOccurred(QMediaPlayer::Error, const QString&))); for (const QString &s : mediaCandidates) { QFileInfo mediaFile(s); if (!mediaFile.exists()) continue; - QUrl media = QUrl(QUrl::fromLocalFile(mediaFile.absoluteFilePath())); + QUrl media = QUrl::fromLocalFile(mediaFile.absoluteFilePath()); player.setSource(media); player.play(); |