Permalink
Browse files

there is no reason for the recently added job to hold a CVideoThumbLo…

…ader member
  • Loading branch information...
1 parent c2f09a9 commit e2de202ffdae464f00d4763c9e32347b2f9416be Jonathan Marshall committed Oct 13, 2012
Showing with 5 additions and 6 deletions.
  1. +5 −3 xbmc/utils/RecentlyAddedJob.cpp
  2. +0 −3 xbmc/utils/RecentlyAddedJob.h
@@ -33,6 +33,7 @@
#include "utils/StringUtils.h"
#include "settings/AdvancedSettings.h"
#include "music/MusicThumbLoader.h"
+#include "video/VideoThumbLoader.h"
#define NUM_ITEMS 10
@@ -53,6 +54,7 @@ bool CRecentlyAddedJob::UpdateVideo()
int i = 0;
CFileItemList items;
CVideoDatabase videodatabase;
+ CVideoThumbLoader loader;
videodatabase.Open();
@@ -75,7 +77,7 @@ bool CRecentlyAddedJob::UpdateVideo()
home->SetProperty("LatestMovie." + value + ".Trailer" , item->GetVideoInfoTag()->m_strTrailer);
if (!item->HasArt("thumb"))
- m_thumbLoader.LoadItem(item.get());
+ loader.LoadItem(item.get());
home->SetProperty("LatestMovie." + value + ".Thumb" , item->GetArt("thumb"));
home->SetProperty("LatestMovie." + value + ".Fanart" , item->GetArt("fanart"));
@@ -125,7 +127,7 @@ bool CRecentlyAddedJob::UpdateVideo()
home->SetProperty("LatestEpisode." + value + ".Path" , item->GetVideoInfoTag()->m_strFileNameAndPath);
if (!item->HasArt("thumb"))
- m_thumbLoader.LoadItem(item.get());
+ loader.LoadItem(item.get());
std::string seasonThumb;
if (item->GetVideoInfoTag()->m_iIdSeason > 0)
@@ -174,7 +176,7 @@ bool CRecentlyAddedJob::UpdateVideo()
home->SetProperty("LatestMusicVideo." + value + ".Artist" , StringUtils::Join(item->GetVideoInfoTag()->m_artist, g_advancedSettings.m_videoItemSeparator));
if (!item->HasArt("thumb"))
- m_thumbLoader.LoadItem(item.get());
+ loader.LoadItem(item.get());
home->SetProperty("LatestMusicVideo." + value + ".Thumb" , item->GetArt("thumb"));
home->SetProperty("LatestMusicVideo." + value + ".Fanart" , item->GetArt("fanart"));
@@ -19,7 +19,6 @@
*
*/
-#include "video/VideoThumbLoader.h"
#include "Job.h"
enum ERecentlyAddedFlag
@@ -37,8 +36,6 @@ class CRecentlyAddedJob : public CJob
bool UpdateMusic();
bool UpdateTotal();
virtual bool DoWork();
-protected:
- CVideoThumbLoader m_thumbLoader;
private:
int m_flag;
};

0 comments on commit e2de202

Please sign in to comment.