Kodi Community Forum

Full Version: Fix for Player.StartTime
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
Hi guys!

When playing a video, the infolabel "Player.StartTime" will never indicate the correct start time but will constantly run backwards. Changing CGUIInfoManager::GetMultiInfoLabel in GUIInfoManager.cpp fixed the issue for me, kindly check:

Code:
else if (info.m_info == PLAYER_START_TIME)
  {
    CDateTime time;
    CEpgInfoTag currentTag;
    if (GetEpgInfoTag(currentTag))
      time = currentTag.StartAsLocalTime();
    else
    {
      time = CDateTime::GetCurrentDateTime();
      time -= CDateTimeSpan(0, 0, 0, g_application.GetTime());
      //using g_application.GetTime() instead of GetPlayTime()
      //time -= CDateTimeSpan(0, 0, 0, (int)GetPlayTime());
    }