Add missing QUrl include
This commit is contained in:
parent
121a186160
commit
072e712f0d
|
@ -246,7 +246,7 @@ void Player::HandleLoadResult(const UrlHandler::LoadResult &result) {
|
||||||
item->SetTemporaryMetadata(song);
|
item->SetTemporaryMetadata(song);
|
||||||
app_->playlist_manager()->active()->InformOfCurrentSongChange();
|
app_->playlist_manager()->active()->InformOfCurrentSongChange();
|
||||||
}
|
}
|
||||||
engine_->Play(result.media_url_, song.url(), stream_change_type_, item->Metadata().has_cue(), item->Metadata().beginning_nanosec(), item->Metadata().end_nanosec());
|
engine_->Play(result.media_url_, result.original_url_, stream_change_type_, item->Metadata().has_cue(), item->Metadata().beginning_nanosec(), item->Metadata().end_nanosec());
|
||||||
|
|
||||||
current_item_ = item;
|
current_item_ = item;
|
||||||
loading_async_ = QUrl();
|
loading_async_ = QUrl();
|
||||||
|
@ -260,6 +260,7 @@ void Player::HandleLoadResult(const UrlHandler::LoadResult &result) {
|
||||||
loading_async_ = result.original_url_;
|
loading_async_ = result.original_url_;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
void Player::Next() { NextInternal(Engine::Manual); }
|
void Player::Next() { NextInternal(Engine::Manual); }
|
||||||
|
@ -626,8 +627,6 @@ void Player::TogglePrettyOSD() {
|
||||||
|
|
||||||
void Player::TrackAboutToEnd() {
|
void Player::TrackAboutToEnd() {
|
||||||
|
|
||||||
qLog(Debug) << __PRETTY_FUNCTION__;
|
|
||||||
|
|
||||||
// If the current track was from a URL handler then it might have special behaviour to queue up a subsequent track.
|
// If the current track was from a URL handler then it might have special behaviour to queue up a subsequent track.
|
||||||
// We don't want to preload (and scrobble) the next item in the playlist if it's just going to be stopped again immediately after.
|
// We don't want to preload (and scrobble) the next item in the playlist if it's just going to be stopped again immediately after.
|
||||||
if (app_->playlist_manager()->active()->current_item()) {
|
if (app_->playlist_manager()->active()->current_item()) {
|
||||||
|
|
|
@ -34,6 +34,7 @@
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include <QUrl>
|
||||||
#include <QTimeLine>
|
#include <QTimeLine>
|
||||||
#include <QMetaObject>
|
#include <QMetaObject>
|
||||||
#include <QtDebug>
|
#include <QtDebug>
|
||||||
|
|
|
@ -42,6 +42,7 @@
|
||||||
#include <QList>
|
#include <QList>
|
||||||
#include <QVariant>
|
#include <QVariant>
|
||||||
#include <QString>
|
#include <QString>
|
||||||
|
#include <QUrl>
|
||||||
#include <QTimerEvent>
|
#include <QTimerEvent>
|
||||||
|
|
||||||
class GstEngine;
|
class GstEngine;
|
||||||
|
|
Loading…
Reference in New Issue