player: Emit request URL in SongChangeRequestProcessed
Use the request URL rather than the media URL when emitting the SongChangeRequestProcessed signal. The request URL is the URL that the PlaylistManager, which is the only consumer of this signal, knows about. However, in the current cases, the url is only checked by the playlist when the two URLs should be the same.
This commit is contained in:
parent
bde6d9cc5b
commit
dfb953a78f
|
@ -670,12 +670,12 @@ void Player::TrackAboutToEnd() {
|
|||
void Player::IntroPointReached() { NextInternal(Engine::Intro); }
|
||||
|
||||
void Player::ValidMediaRequested(const MediaPlaybackRequest& req) {
|
||||
emit SongChangeRequestProcessed(req.url_, true);
|
||||
emit SongChangeRequestProcessed(req.RequestUrl(), true);
|
||||
}
|
||||
|
||||
void Player::InvalidMediaRequested(const MediaPlaybackRequest& req) {
|
||||
// first send the notification to others...
|
||||
emit SongChangeRequestProcessed(req.url_, false);
|
||||
emit SongChangeRequestProcessed(req.RequestUrl(), false);
|
||||
// ... and now when our listeners have completed their processing of the
|
||||
// current item we can change the current item by skipping to the next song
|
||||
|
||||
|
|
Loading…
Reference in New Issue