Skip to content
This repository
Browse code

[art] make sure we assign trailer art via CVideoThumbLoader::SetArt t…

…o ensure the art fallbacks are set
  • Loading branch information...
commit 8dd07c90cb639fa623d79711dc97837d396680a4 1 parent a65b40d
authored December 04, 2012
9  xbmc/video/VideoThumbLoader.h
@@ -116,12 +116,17 @@ class CVideoThumbLoader : public CThumbLoader, public CJobQueue
116 116
    */
117 117
   virtual void OnJobComplete(unsigned int jobID, bool success, CJob *job);
118 118
 
  119
+  /*! \brief set the artwork map for an item
  120
+   In addition, sets the standard fallbacks.
  121
+   \param item the item on which to set art.
  122
+   \param artwork the artwork map.
  123
+   */
  124
+  static void SetArt(CFileItem &item, const std::map<std::string, std::string> &artwork);
  125
+
119 126
 protected:
120 127
   virtual void OnLoaderStart();
121 128
   virtual void OnLoaderFinish();
122 129
 
123  
-  void SetArt(CFileItem &item, const std::map<std::string, std::string> &artwork);
124  
-
125 130
   IStreamDetailsObserver *m_pStreamDetailsObs;
126 131
   CVideoDatabase *m_database;
127 132
   typedef std::map<int, std::map<std::string, std::string> > ArtCache;
2  xbmc/video/dialogs/GUIDialogVideoInfo.cpp
@@ -850,7 +850,7 @@ void CGUIDialogVideoInfo::PlayTrailer()
850 850
   *item.GetVideoInfoTag() = *m_movieItem->GetVideoInfoTag();
851 851
   item.GetVideoInfoTag()->m_streamDetails.Reset();
852 852
   item.GetVideoInfoTag()->m_strTitle.Format("%s (%s)",m_movieItem->GetVideoInfoTag()->m_strTitle.c_str(),g_localizeStrings.Get(20410));
853  
-  item.SetArt(m_movieItem->GetArt());
  853
+  CVideoThumbLoader::SetArt(item, m_movieItem->GetArt());
854 854
   item.GetVideoInfoTag()->m_iDbId = -1;
855 855
   item.GetVideoInfoTag()->m_iFileId = -1;
856 856
 

0 notes on commit 8dd07c9

Please sign in to comment.
Something went wrong with that request. Please try again.