[pvr] CFileItem: fallback to channel icon if epg icon is empty
authorxhaggi <sascha.woo@gmail.com>
Tue, 3 Dec 2013 22:02:06 +0000 (23:02 +0100)
committerxhaggi <sascha.woo@gmail.com>
Tue, 3 Dec 2013 22:02:06 +0000 (23:02 +0100)
xbmc/FileItem.cpp

index f734222..6a80645 100644 (file)
@@ -151,6 +151,8 @@ CFileItem::CFileItem(const CEpgInfoTag& tag)
 
   if (!tag.Icon().empty())
     SetIconImage(tag.Icon());
+  else if (tag.HasPVRChannel() && !tag.ChannelTag()->IconPath().empty())
+    SetIconImage(tag.ChannelTag()->IconPath());
 
   FillInMimeType(false);
 }