Remove LiveTV menu.
[vuplus_xbmc] / xbmc / ThumbnailCache.cpp
1 /*
2  *      Copyright (C) 2005-2013 Team XBMC
3  *      http://xbmc.org
4  *
5  *  This Program is free software; you can redistribute it and/or modify
6  *  it under the terms of the GNU General Public License as published by
7  *  the Free Software Foundation; either version 2, or (at your option)
8  *  any later version.
9  *
10  *  This Program is distributed in the hope that it will be useful,
11  *  but WITHOUT ANY WARRANTY; without even the implied warranty of
12  *  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
13  *  GNU General Public License for more details.
14  *
15  *  You should have received a copy of the GNU General Public License
16  *  along with XBMC; see the file COPYING.  If not, see
17  *  <http://www.gnu.org/licenses/>.
18  *
19  */
20
21 #include "ThumbnailCache.h"
22 #include "filesystem/File.h"
23 #include "threads/SingleLock.h"
24
25 #include "FileItem.h"
26 #include "video/VideoInfoTag.h"
27 #include "video/VideoDatabase.h"
28 #include "music/tags/MusicInfoTag.h"
29 #include "music/Album.h"
30 #include "music/Artist.h"
31 #include "utils/URIUtils.h"
32 #include "utils/Crc32.h"
33 #include "utils/StringUtils.h"
34 #include "filesystem/StackDirectory.h"
35 #include "settings/AdvancedSettings.h"
36
37 using namespace std;
38 using namespace XFILE;
39 using namespace MUSIC_INFO;
40
41 CThumbnailCache* CThumbnailCache::m_pCacheInstance = NULL;
42
43 CCriticalSection CThumbnailCache::m_cs;
44
45 CThumbnailCache::~CThumbnailCache()
46 {}
47
48 CThumbnailCache::CThumbnailCache()
49 {
50 }
51
52 CThumbnailCache* CThumbnailCache::GetThumbnailCache()
53 {
54   CSingleLock lock (m_cs);
55
56   if (m_pCacheInstance == NULL)
57     m_pCacheInstance = new CThumbnailCache;
58
59   return m_pCacheInstance;
60 }