mirror of
https://github.com/tuxbox-fork-migrations/recycled-ni-neutrino.git
synced 2025-08-30 00:41:09 +02:00
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:
@@ -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 )
|
||||
show_Data( true );
|
||||
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) {
|
||||
|
Reference in New Issue
Block a user