summaryrefslogtreecommitdiff
path: root/hlsPlayerControl.cpp
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-01-31 17:55:07 +0100
committerchriszero <zerov83@gmail.com>2015-01-31 17:55:07 +0100
commit1ecdb2a5d9e05e0d30dae89e3d675218ca4c255e (patch)
tree1047246d4c34fa39134aa6b1b868fcf4712e68fa /hlsPlayerControl.cpp
parent7eaaba1d58d1baeb35288e66ee5e9703ec10cdbe (diff)
downloadvdr-plugin-plex-1ecdb2a5d9e05e0d30dae89e3d675218ca4c255e.tar.gz
vdr-plugin-plex-1ecdb2a5d9e05e0d30dae89e3d675218ca4c255e.tar.bz2
- If watched +90%, the media will be marked as watched
- current play state is syncronized with the pms - remaing time is now displayed according to the VDR setup
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();