gui/infoviewer.cpp: update progress in file play mode while visible

Origin commit data
------------------
Branch: ni/coolstream
Commit: 60cfc785cd
Author: [CST] Focus <focus.cst@gmail.com>
Date: 2013-03-26 (Tue, 26 Mar 2013)


------------------
No further description and justification available within origin commit message!

------------------
This commit was generated by Migit
This commit is contained in:
[CST] Focus
2013-03-26 18:46:09 +04:00
parent 3c65d4c0ff
commit e9411db235

View File

@@ -1244,8 +1244,18 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data)
return messages_return::handled;
} else if (data == lcdUpdateTimer) {
//printf("CInfoViewer::handleMsg: lcdUpdateTimer\n");
if ( is_visible )
if (is_visible) {
if (fileplay) {
CMoviePlayerGui::getInstance().UpdatePosition();
char runningRest[32]; // %d can be 10 digits max...
int curr_pos = CMoviePlayerGui::getInstance().GetPosition();
int duration = CMoviePlayerGui::getInstance().GetDuration();
sprintf(runningRest, "%d / %d min", (curr_pos + 30000) / 60000, (duration + 30000) / 60000);
display_Info(NULL, NULL, true, false, CMoviePlayerGui::getInstance().file_prozent, NULL, runningRest);
} else {
show_Data( true );
}
}
showLcdPercentOver ();
return messages_return::handled;
} else if (data == sec_timer_id) {