diff options
author | chriszero <zerov83@gmail.com> | 2015-06-07 12:29:45 +0200 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-06-07 12:29:45 +0200 |
commit | 6cf8e6e3f5f442818063d8507b458da4f9e1700d (patch) | |
tree | b449a7721a7316bc67e59579f6779156a7cda7fb /pictureCache.h | |
parent | 3ec286b742bb833ca203a9965e22d2447fe4d59f (diff) | |
download | vdr-plugin-plex-6cf8e6e3f5f442818063d8507b458da4f9e1700d.tar.gz vdr-plugin-plex-6cf8e6e3f5f442818063d8507b458da4f9e1700d.tar.bz2 |
Optimized picture cache
Diffstat (limited to 'pictureCache.h')
-rw-r--r-- | pictureCache.h | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/pictureCache.h b/pictureCache.h index 3d66726..51398e8 100644 --- a/pictureCache.h +++ b/pictureCache.h @@ -41,11 +41,10 @@ private: volatile bool m_bAllInvalidated; std::string FileName(std::string uri, int width); - - std::shared_ptr<std::istream> DownloadFile(std::string uri); - void SaveFileToDisk(std::shared_ptr<std::istream> file, std::string fileName); std::string TranscodeUri(std::string uri, int width, int height); + bool DownloadFileAndSave(std::string uri, std::string localFile); + std::string m_cacheDir; protected: |