summaryrefslogtreecommitdiff
path: root/hlsPlayerControl.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'hlsPlayerControl.cpp')
-rw-r--r--hlsPlayerControl.cpp7
1 files changed, 5 insertions, 2 deletions
diff --git a/hlsPlayerControl.cpp b/hlsPlayerControl.cpp
index 8d65310..168c60e 100644
--- a/hlsPlayerControl.cpp
+++ b/hlsPlayerControl.cpp
@@ -43,8 +43,9 @@ cHlsPlayerControl::cHlsPlayerControl(cHlsPlayer* Player, plexclient::MediaContai
cHlsPlayerControl::~cHlsPlayerControl()
{
dsyslog("[plex]: '%s'", __FUNCTION__);
- delete player;
Hide();
+ delete player;
+ player = NULL;
cStatus::MsgReplaying(this, NULL, NULL, false);
}
@@ -232,8 +233,10 @@ bool cHlsPlayerControl::ShowProgress(bool Initial)
lastCurrent = lastTotal = -1;
}
if (Current != lastCurrent || Total != lastTotal) {
- if (Total != lastTotal) {
+ if (Setup.ShowRemainingTime || Total != lastTotal) {
int Index = Total;
+ if (Setup.ShowRemainingTime)
+ Index = Current - Index;
displayReplay->SetTotal(IndexToHMSF(Index, false, FramesPerSecond()));
if (!Initial)
displayReplay->Flush();