Permalink
Browse files

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

…ing here
  • Loading branch information...
1 parent b93a152 commit 820b08c2520bbea89fb862c61f4dc5a6a63865df @Memphiz committed Mar 20, 2013
Showing with 1 addition and 1 deletion.
  1. +1 −1 xbmc/network/AirPlayServer.cpp
@@ -840,7 +840,7 @@ int CAirPlayServer::CTCPClient::ProcessRequest( CStdString& responseHeader,
if (g_application.m_pPlayer && g_application.m_pPlayer->GetTotalTime())
{
float position = ((float) g_application.m_pPlayer->GetTime()) / 1000;
- responseBody.Format("duration: %d\r\nposition: %f", g_application.m_pPlayer->GetTotalTime() / 1000, position);
+ responseBody.Format("duration: %.6f\r\nposition: %.6f\r\n", (float)g_application.m_pPlayer->GetTotalTime() / 1000, position);
}
else
{

0 comments on commit 820b08c

Please sign in to comment.