Skip to content
This repository
Browse code

[airplay] - fix the playtime - itunes is very picky about the formatt…

…ing here
  • Loading branch information...
commit 820b08c2520bbea89fb862c61f4dc5a6a63865df 1 parent b93a152
Memphiz authored March 20, 2013

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. 2  xbmc/network/AirPlayServer.cpp
2  xbmc/network/AirPlayServer.cpp
@@ -840,7 +840,7 @@ int CAirPlayServer::CTCPClient::ProcessRequest( CStdString& responseHeader,
840 840
       if (g_application.m_pPlayer && g_application.m_pPlayer->GetTotalTime())
841 841
       {
842 842
         float position = ((float) g_application.m_pPlayer->GetTime()) / 1000;
843  
-        responseBody.Format("duration: %d\r\nposition: %f", g_application.m_pPlayer->GetTotalTime() / 1000, position);
  843
+        responseBody.Format("duration: %.6f\r\nposition: %.6f\r\n", (float)g_application.m_pPlayer->GetTotalTime() / 1000, position);
844 844
       }
845 845
       else 
846 846
       {

0 notes on commit 820b08c

Please sign in to comment.
Something went wrong with that request. Please try again.