summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorchriszero <zerov83@gmail.com>2015-01-31 15:39:45 +0100
committerchriszero <zerov83@gmail.com>2015-01-31 15:39:45 +0100
commit7eaaba1d58d1baeb35288e66ee5e9703ec10cdbe (patch)
tree93fc7113d6f2594875ebb78145fc5b82c1f765db
parent5e9305312db74b71aae9025f7bfe06bac8ebb885 (diff)
downloadvdr-plugin-plex-7eaaba1d58d1baeb35288e66ee5e9703ec10cdbe.tar.gz
vdr-plugin-plex-7eaaba1d58d1baeb35288e66ee5e9703ec10cdbe.tar.bz2
Fixes segfault in lcdproc, and probably graphtft
-rw-r--r--hlsPlayerControl.cpp8
-rw-r--r--hlsPlayerControl.h1
2 files changed, 9 insertions, 0 deletions
diff --git a/hlsPlayerControl.cpp b/hlsPlayerControl.cpp
index b458f87..8d65310 100644
--- a/hlsPlayerControl.cpp
+++ b/hlsPlayerControl.cpp
@@ -40,6 +40,14 @@ cHlsPlayerControl::cHlsPlayerControl(cHlsPlayer* Player, plexclient::MediaContai
cStatus::MsgReplaying(this, m_title.c_str(), m_pVideo->m_Media.m_sPartFile.c_str(), true);
}
+cHlsPlayerControl::~cHlsPlayerControl()
+{
+ dsyslog("[plex]: '%s'", __FUNCTION__);
+ delete player;
+ Hide();
+ cStatus::MsgReplaying(this, NULL, NULL, false);
+}
+
cString cHlsPlayerControl::GetHeader(void)
{
return m_title.c_str();
diff --git a/hlsPlayerControl.h b/hlsPlayerControl.h
index 9b51c97..2f7347b 100644
--- a/hlsPlayerControl.h
+++ b/hlsPlayerControl.h
@@ -34,6 +34,7 @@ protected:
public:
static cControl* Create(plexclient::Video* Video);
cHlsPlayerControl(cHlsPlayer* Player, plexclient::MediaContainer* Container);
+ virtual ~cHlsPlayerControl();
virtual void Show(void);
virtual void Hide(void);