Permalink
Browse files

don't set listitem.duration if it's 0. fixes #13642

  • Loading branch information...
1 parent 72fb61c commit 2a895ace5533efb415e86fa6e12c3b3712c788c1 Jonathan Marshall committed Dec 1, 2012
Showing with 2 additions and 1 deletion.
  1. +2 −1 xbmc/GUIInfoManager.cpp
View
3 xbmc/GUIInfoManager.cpp
@@ -4494,7 +4494,8 @@ CStdString CGUIInfoManager::GetItemLabel(const CFileItem *item, int info, CStdSt
}
else if (item->HasVideoInfoTag())
{
- duration.Format("%d", item->GetVideoInfoTag()->GetDuration() / 60);
+ if (item->GetVideoInfoTag()->GetDuration() > 0)
+ duration.Format("%d", item->GetVideoInfoTag()->GetDuration() / 60);
}
else if (item->HasMusicInfoTag())
{

0 comments on commit 2a895ac

Please sign in to comment.