Added support for system_artwork/video playback.

This commit is contained in:
emb 2015-02-26 12:35:11 -06:00
parent cae0198bf9
commit 7f1f6137b6

View File

@ -153,15 +153,21 @@ void ReloadableMedia::ReloadTexture()
{
names.push_back(selectedItem->GetCloneOf());
}
std::string videoPath;
Config.GetMediaPropertyAbsolutePath(GetCollectionName(), "video", videoPath);
for(unsigned int n = 0; n < names.size() && !found; ++n)
{
VideoBuilder videoBuild;
std::string videoPath;
Config.GetMediaPropertyAbsolutePath(GetCollectionName(), "video", false, videoPath);
LoadedComponent = videoBuild.CreateVideo(videoPath, names[n], ScaleX, ScaleY);
if(!LoadedComponent)
{
Config.GetMediaPropertyAbsolutePath(names[n], Type, true, videoPath);
LoadedComponent = videoBuild.CreateVideo(videoPath, "video", ScaleX, ScaleY);
}
if(LoadedComponent)
{
LoadedComponent->AllocateGraphicsMemory();