Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

[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
Jonathan Marshall authored
View
9 xbmc/video/VideoThumbLoader.h
@@ -116,12 +116,17 @@ class CVideoThumbLoader : public CThumbLoader, public CJobQueue
*/
virtual void OnJobComplete(unsigned int jobID, bool success, CJob *job);
+ /*! \brief set the artwork map for an item
+ In addition, sets the standard fallbacks.
+ \param item the item on which to set art.
+ \param artwork the artwork map.
+ */
+ static void SetArt(CFileItem &item, const std::map<std::string, std::string> &artwork);
+
protected:
virtual void OnLoaderStart();
virtual void OnLoaderFinish();
- void SetArt(CFileItem &item, const std::map<std::string, std::string> &artwork);
-
IStreamDetailsObserver *m_pStreamDetailsObs;
CVideoDatabase *m_database;
typedef std::map<int, std::map<std::string, std::string> > ArtCache;
View
2  xbmc/video/dialogs/GUIDialogVideoInfo.cpp
@@ -850,7 +850,7 @@ void CGUIDialogVideoInfo::PlayTrailer()
*item.GetVideoInfoTag() = *m_movieItem->GetVideoInfoTag();
item.GetVideoInfoTag()->m_streamDetails.Reset();
item.GetVideoInfoTag()->m_strTitle.Format("%s (%s)",m_movieItem->GetVideoInfoTag()->m_strTitle.c_str(),g_localizeStrings.Get(20410));
- item.SetArt(m_movieItem->GetArt());
+ CVideoThumbLoader::SetArt(item, m_movieItem->GetArt());
item.GetVideoInfoTag()->m_iDbId = -1;
item.GetVideoInfoTag()->m_iFileId = -1;
Please sign in to comment.
Something went wrong with that request. Please try again.