v18 Playlist refresh
#1
Hello

Maybe somebody can give me a hint, how to approach... Goal is, I wanna modify the playlist update procedure which is triggered by:
cpp:

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

The behaviour at the moment is, all items are updated each time I trigger the command. This is a overkill in case of e.g. only one item is added at the tail and takes long time in case of couple thousand items in the playlist.
I tried to trace it back to...
GUIMediaWindow.cpp -> CGUIMediaWindow::Refresh -> CGUIMediaWindow::Update -> CGUIMediaWindow::GetDirectory and so on.
... but I cannot figure out a good approach to prevent refreshing the whole playlist.
Does anyone have an idea, where the playlist (actually) the screen refresh is triggered. Is there a spot which loops threw all items, so I could implement modifications?
Reply

Logout Mark Read Team Forum Stats Members Help
Playlist refresh0