aboutsummaryrefslogtreecommitdiff
path: root/xbmc/interfaces/legacy/PlayList.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'xbmc/interfaces/legacy/PlayList.cpp')
-rw-r--r--xbmc/interfaces/legacy/PlayList.cpp9
1 files changed, 6 insertions, 3 deletions
diff --git a/xbmc/interfaces/legacy/PlayList.cpp b/xbmc/interfaces/legacy/PlayList.cpp
index 649bc89892..076e1928b1 100644
--- a/xbmc/interfaces/legacy/PlayList.cpp
+++ b/xbmc/interfaces/legacy/PlayList.cpp
@@ -14,6 +14,8 @@
#include "playlists/PlayListFactory.h"
#include "utils/URIUtils.h"
+using namespace KODI;
+
namespace XBMCAddon
{
namespace xbmc
@@ -24,10 +26,11 @@ namespace XBMCAddon
iPlayList(playList), pPlayList(NULL)
{
// we do not create our own playlist, just using the ones from playlistplayer
- if (iPlayList != PLAYLIST::TYPE_MUSIC && iPlayList != PLAYLIST::TYPE_VIDEO)
+ if (PLAYLIST::Id{iPlayList} != PLAYLIST::Id::TYPE_MUSIC &&
+ PLAYLIST::Id{iPlayList} != PLAYLIST::Id::TYPE_VIDEO)
throw PlayListException("PlayList does not exist");
- pPlayList = &CServiceBroker::GetPlaylistPlayer().GetPlaylist(playList);
+ pPlayList = &CServiceBroker::GetPlaylistPlayer().GetPlaylist(PLAYLIST::Id{playList});
iPlayList = playList;
}
@@ -76,7 +79,7 @@ namespace XBMCAddon
return false;
// clear current playlist
- CServiceBroker::GetPlaylistPlayer().ClearPlaylist(this->iPlayList);
+ CServiceBroker::GetPlaylistPlayer().ClearPlaylist(PLAYLIST::Id{this->iPlayList});
// add each item of the playlist to the playlistplayer
for (int i=0; i < pPlayList->size(); ++i)