summaryrefslogtreecommitdiff
path: root/watch.c
diff options
context:
space:
mode:
authoranbr <vdr07@deltab.de>2013-10-26 16:56:20 +0200
committeranbr <vdr07@deltab.de>2013-10-26 16:56:20 +0200
commit0f3cf887c868ace108e814bd31fb3bffa1e6568a (patch)
tree7359a9c2a4f107e371750829f5b623812c404231 /watch.c
parentb6a04aa19dab95e55ba0d54b20e914f446050d43 (diff)
downloadvdr-plugin-targavfd-0f3cf887c868ace108e814bd31fb3bffa1e6568a.tar.gz
vdr-plugin-targavfd-0f3cf887c868ace108e814bd31fb3bffa1e6568a.tar.bz2
Fix display wrong time for HD recording if they greater than one hour (Close #1568)
Diffstat (limited to 'watch.c')
-rw-r--r--watch.c8
1 files changed, 8 insertions, 0 deletions
diff --git a/watch.c b/watch.c
index 9a8cb72..29efe69 100644
--- a/watch.c
+++ b/watch.c
@@ -630,14 +630,22 @@ const char * cVFDWatch::FormatReplayTime(int current, int total, double dFrameRa
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);
}