Code: Alles auswählen
diff -ur tuxbox-cvs-orig/apps/tuxbox/neutrino/src/gui/infoviewer.cpp tuxbox-cvs/apps/tuxbox/neutrino/src/gui/infoviewer.cpp
--- tuxbox-cvs-orig/apps/tuxbox/neutrino/src/gui/infoviewer.cpp 2009-11-09 21:38:24.000000000 +0000
+++ tuxbox-cvs/apps/tuxbox/neutrino/src/gui/infoviewer.cpp 2009-11-15 16:05:37.000000000 +0000
@@ -1972,7 +1972,13 @@
if (jetzt < info_CurrentNext.current_zeit.startzeit)
runningPercent = 0;
else if (jetzt > (int)(info_CurrentNext.current_zeit.startzeit + info_CurrentNext.current_zeit.dauer))
- runningPercent = -2; /* overtime */
+ {
+ getEPG(g_RemoteControl->current_channel_id, info_CurrentNext);
+ CLCD::getInstance()->setEPGTitle(info_CurrentNext.current_name);
+ runningPercent=MIN((jetzt-info_CurrentNext.current_zeit.startzeit) * 100 /
+ info_CurrentNext.current_zeit.dauer ,100);
+ interval = 5000000;
+ }
else
{
runningPercent=MIN((jetzt-info_CurrentNext.current_zeit.startzeit) * 100 /
@@ -1984,6 +1990,14 @@
interval = 5000000; // update only every 5 seconds
}
}
+ else
+ {
+ CLCD::getInstance()->setEPGTitle("(no epg)");
+ getEPG(g_RemoteControl->current_channel_id, info_CurrentNext);
+ runningPercent=MIN((jetzt-info_CurrentNext.current_zeit.startzeit) * 100 /
+ info_CurrentNext.current_zeit.dauer ,100);
+
+ }
if (interval != old_interval)
{
g_RCInput->killTimer(lcdUpdateTimer);