Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

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

  • Loading branch information...
commit 2a895ace5533efb415e86fa6e12c3b3712c788c1 1 parent 72fb61c
Jonathan Marshall authored
Showing with 2 additions and 1 deletion.
  1. +2 −1  xbmc/GUIInfoManager.cpp
3  xbmc/GUIInfoManager.cpp
View
@@ -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())
{
Please sign in to comment.
Something went wrong with that request. Please try again.