summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2013-10-26 17:02:00 +0200
committeranbr <vdr07@deltab.de>2013-10-26 17:02:00 +0200
commit4f8c014e73e9ba11172d6070d8a123f9da20361f (patch)
treef302aa6d8326b7510e6fbc6e402bdb99ec698360
parentfa47d6df0902d3ac1e4f326be4f2e578fd0f5f19 (diff)
downloadvdr-plugin-imonlcd-4f8c014e73e9ba11172d6070d8a123f9da20361f.tar.gz
vdr-plugin-imonlcd-4f8c014e73e9ba11172d6070d8a123f9da20361f.tar.bz2
Fix display wrong time for HD recording if they greater than one hour (Bug #1568)
-rw-r--r--HISTORY2
-rw-r--r--watch.c8
2 files changed, 10 insertions, 0 deletions
diff --git a/HISTORY b/HISTORY
index 07a2e73..bc9533c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,6 +1,8 @@
VDR Plugin 'imonlcd' Revision History
-------------------------------------
+- Fix display wrong time for HD recording if they greater than one hour (Bug #1568)
+
2013-03-23: Version 1.0.1
- Adapt Makefile for new VDR >=1.7.36
- Fix bug: close crash without open device.
diff --git a/watch.c b/watch.c
index 68c40aa..5622aad 100644
--- a/watch.c
+++ b/watch.c
@@ -765,14 +765,22 @@ const char * ciMonWatch::FormatReplayTime(int current, int total, double dFrameR
if (total > 1) {
if(g) {
+#if VDRVERSNUM >= 10703
+ snprintf(s, sizeof(s), "%s (%s)", (const char*)IndexToHMSF(current,false,dFrameRate), (const char*)IndexToHMSF(total,false,dFrameRate));
+#else
snprintf(s, sizeof(s), "%s (%s)", (const char*)IndexToHMSF(current), (const char*)IndexToHMSF(total));
+#endif
} else {
snprintf(s, sizeof(s), "%02d:%02d (%02d:%02d)", cm, cs, tm, ts);
}
}
else {
if(g) {
+#if VDRVERSNUM >= 10703
+ snprintf(s, sizeof(s), "%s", (const char*)IndexToHMSF(current,false,dFrameRate));
+#else
snprintf(s, sizeof(s), "%s", (const char*)IndexToHMSF(current));
+#endif
} else {
snprintf(s, sizeof(s), "%02d:%02d", cm, cs);
}