Kodi Community Forum
Fix for Player.StartTime - Printable Version

+- Kodi Community Forum (https://forum.kodi.tv)
+-- Forum: Development (https://forum.kodi.tv/forumdisplay.php?fid=32)
+--- Forum: Kodi Application (https://forum.kodi.tv/forumdisplay.php?fid=93)
+--- Thread: Fix for Player.StartTime (/showthread.php?tid=153078)



Fix for Player.StartTime - coffeecup - 2013-01-23

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());
    }