Skip to content

Commit

Permalink
Merge pull request xbmc#24396 from enen92/upnp_seek_fix
Browse files Browse the repository at this point in the history
[upnp] Renderer: playlist changed is an event that should e emitted b…
  • Loading branch information
enen92 authored Jan 3, 2024
2 parents 9a3a883 + c9caf10 commit 1b060ea
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
4 changes: 4 additions & 0 deletions xbmc/PlayListPlayer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -694,6 +694,10 @@ void CPlayListPlayer::Add(Id playlistId, const CFileItemPtr& pItem)
list.Add(pItem);
if (list.IsShuffled())
ReShuffle(playlistId, iSize);

// its likely that the playlist changed
CGUIMessage msg(GUI_MSG_PLAYLIST_CHANGED, 0, 0);
CServiceBroker::GetGUI()->GetWindowManager().SendMessage(msg);
}

void CPlayListPlayer::Add(Id playlistId, const CFileItemList& items)
Expand Down
4 changes: 0 additions & 4 deletions xbmc/network/upnp/UPnPRenderer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -627,10 +627,6 @@ CUPnPRenderer::OnSetNextAVTransportURI(PLT_ActionReference& action)
CServiceBroker::GetPlaylistPlayer().SetCurrentPlaylist(playlistId);
}

CGUIMessage msg(GUI_MSG_PLAYLIST_CHANGED, 0, 0);
CServiceBroker::GetGUI()->GetWindowManager().SendThreadMessage(msg);


service->SetStateVariable("NextAVTransportURI", uri);
service->SetStateVariable("NextAVTransportURIMetaData", meta);

Expand Down

0 comments on commit 1b060ea

Please sign in to comment.