mirror of
https://github.com/tuxbox-neutrino/neutrino.git
synced 2025-08-28 07:51:19 +02:00
infoviewer: change show_Data() semantics slightly
the "calledFromEvent" parameter was only used to force display of "no EPG available". It was set to true when calling from an "zap complete" or "epg event received" event, which is good, but also when calling from the display update timer, which is "strange". Now setting this parameter to false forces the update of the current event (if available) which is done from display update timer. This fixes the update of the remaining time display with constantly displayed infobar (radio mode).
This commit is contained in:
@@ -1349,7 +1349,7 @@ int CInfoViewer::handleMsg (const neutrino_msg_t msg, neutrino_msg_data_t data)
|
||||
snprintf(runningRest, sizeof(runningRest), "%d / %d %s", (curr_pos + 30000) / 60000, (duration - curr_pos + 30000) / 60000, unit_short_minute);
|
||||
display_Info(NULL, NULL, false, CMoviePlayerGui::getInstance().file_prozent, NULL, runningRest);
|
||||
} else if (!IS_WEBTV(current_channel_id)) {
|
||||
show_Data( true );
|
||||
show_Data(false);
|
||||
}
|
||||
}
|
||||
showLcdPercentOver ();
|
||||
@@ -1815,7 +1815,7 @@ void CInfoViewer::show_Data (bool calledFromEvent)
|
||||
|
||||
if (info_CurrentNext.flags & CSectionsdClient::epgflags::has_current)
|
||||
{
|
||||
if (info_CurrentNext.current_uniqueKey != last_curr_id)
|
||||
if (!calledFromEvent || info_CurrentNext.current_uniqueKey != last_curr_id)
|
||||
{
|
||||
last_curr_id = info_CurrentNext.current_uniqueKey;
|
||||
curr_time = runningStart;
|
||||
|
Reference in New Issue
Block a user