summaryrefslogtreecommitdiff
path: root/include
diff options
context:
space:
mode:
authormethodus <methodus@web.de>2013-04-27 09:42:33 +0200
committermethodus <methodus@web.de>2013-04-27 09:42:33 +0200
commite0813ab8cfdee367ab6138c0227205274c76ffe1 (patch)
treea7b247527185aa7ca324aa970001e59bc0c4d430 /include
parentbcc8e557adb68576c44fd07ce19a9d3d96786af3 (diff)
downloadvdr-plugin-upnp-e0813ab8cfdee367ab6138c0227205274c76ffe1.tar.gz
vdr-plugin-upnp-e0813ab8cfdee367ab6138c0227205274c76ffe1.tar.bz2
Possible fix for high CPU load when refreshing EPG
Diffstat (limited to 'include')
-rw-r--r--include/media/mediaManager.h4
-rw-r--r--include/plugin.h8
2 files changed, 6 insertions, 6 deletions
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.