summaryrefslogtreecommitdiff
path: root/watch.c
diff options
context:
space:
mode:
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 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);
}