From e0813ab8cfdee367ab6138c0227205274c76ffe1 Mon Sep 17 00:00:00 2001 From: methodus Date: Sat, 27 Apr 2013 09:42:33 +0200 Subject: Possible fix for high CPU load when refreshing EPG --- include/media/mediaManager.h | 4 ++-- include/plugin.h | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) (limited to 'include') diff --git a/include/media/mediaManager.h b/include/media/mediaManager.h index 9857d50..10cb9e9 100644 --- a/include/media/mediaManager.h +++ b/include/media/mediaManager.h @@ -23,7 +23,7 @@ class cResourceStreamer; class cPluginManager; class cMediaManager : public cThread { - friend void cUPnPResourceProvider::OnContainerUpdate(const string& uri, long updateID, const string& target = string()); + friend void cUPnPResourceProvider::OnContainerUpdate(const string& uri, long updateID, const StringList& target = StringList()); private: struct MediaRequest { @@ -82,7 +82,7 @@ private: int CreateResponse(MediaRequest&, const string&, const string&); - void OnContainerUpdate(const string& uri, long updateID, const string& target); + void OnContainerUpdate(const string& uri, long updateID, const StringList& target); bool UpdateContainerUpdateId(const string& objectID, long updateID); bool ScanURI(const string& uri, cUPnPResourceProvider* provider); diff --git a/include/plugin.h b/include/plugin.h index fa167b7..e3073f4 100644 --- a/include/plugin.h +++ b/include/plugin.h @@ -473,12 +473,12 @@ protected: * - change of the parent container, where the file or container * was moved to * - * The optional target must be an element inside the container - * specified in the URI. If the target is not empty, only this - * element will be checked for changes. Otherwise the full container + * The optional target list contains elements inside the container + * specified in the URI. If the target list is not empty, only those + * elements will be checked for changes. Otherwise the full container * is scanned. */ - void OnContainerUpdate(const string& uri, long containerUpdateId, const string& target = string()); + void OnContainerUpdate(const string& uri, long containerUpdateId, const StringList& target = StringList()); /** * Load a configuration file. -- cgit v1.2.3