From 5d35c3ddb658401143eb6610c1b5cd33eb8827f4 Mon Sep 17 00:00:00 2001 From: Heehong Moon Date: Sun, 1 May 2016 14:02:54 +0900 Subject: [PATCH] Display sub delay on OSD. --- PeerPlayer/ControlUI.m | 13 +++++++++++-- 1 file changed, 11 insertions(+), 2 deletions(-) diff --git a/PeerPlayer/ControlUI.m b/PeerPlayer/ControlUI.m index 61b0e8a..92a8281 100644 --- a/PeerPlayer/ControlUI.m +++ b/PeerPlayer/ControlUI.m @@ -62,12 +62,21 @@ -(void) updateUI { cache = @""; } + NSString* subDelay; + if(self.playInfo.subDelay != 0) { + subDelay = [NSString stringWithFormat:@"(SUB %+.1fsec)", self.playInfo.subDelay]; + } + else { + subDelay = @""; + } + [self.osd setMsg: - [NSString stringWithFormat:@"%@ %@/%@ %@", + [NSString stringWithFormat:@"%@ %@/%@ %@%@", self.playInfo.paused ? @"Paused":@"Playing", [ControlUI formatTime:self.playInfo.timePos], [ControlUI formatTime:self.playInfo.duration], - cache]]; + cache, + subDelay]]; } else { self.osd.hidden = YES;