xbmc/xbmc — pull request #778 by Memphiz (2012-03-17 14:33:07+00:00)
Title: [fix] - fix the autoclose timeout calculation - using SystemClockMillis

I got problems with the yesno dialog which is shown after resolution switching in iOS. When using the old timeout implementation based on GetFrameTime, that dialog doesn't even show up because it timed out before.

I added 2 printouts for verification of the old, wonky behaviour:

GUIDialog.cpp:L99: i logged the m_showStartTime here

GUIDialog.cpp:L229: i logged the m_showStartTime + m_showDuration < TimeUtils::GetFrameTime() here.

This is the printout:

http://pastebin.com/tmwW98YP

As you can see the timeout is 10 secs for that yesno dialog. And XBMC eats that 10 secs up in no time. Time traveling?

No sure if the switch to SystemClockMillis is the right fix here. You can't test with this special dialog because resolution/monitor switching is not in mainline yet.