diff options
author | chriszero <zerov83@gmail.com> | 2015-02-13 16:14:10 +0100 |
---|---|---|
committer | chriszero <zerov83@gmail.com> | 2015-02-13 16:14:10 +0100 |
commit | 20fefdd3f341d6e7f6b15e4926bf5569aa1943d5 (patch) | |
tree | ba402770b4912be3d93f6dd8faab521f4b5e4762 /hlsPlayerControl.h | |
parent | b5c156939ddf2fc4ec3fa27ae1c3daae28681c12 (diff) | |
download | vdr-plugin-plex-20fefdd3f341d6e7f6b15e4926bf5569aa1943d5.tar.gz vdr-plugin-plex-20fefdd3f341d6e7f6b15e4926bf5569aa1943d5.tar.bz2 |
Removed some raw pointers to avoid a possible memoryleak
Diffstat (limited to 'hlsPlayerControl.h')
-rw-r--r-- | hlsPlayerControl.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/hlsPlayerControl.h b/hlsPlayerControl.h index 6457363..c64139a 100644 --- a/hlsPlayerControl.h +++ b/hlsPlayerControl.h @@ -12,7 +12,6 @@ class cHlsPlayerControl : public cControl { private: static volatile int active; - plexclient::MediaContainer* m_pMediaContainer; cHlsPlayer* player; std::string m_title; @@ -31,10 +30,10 @@ protected: //void ShowMode(); public: - plexclient::Video* m_pVideo; + plexclient::Video m_Video; - static cControl* Create(plexclient::Video* Video); - cHlsPlayerControl(cHlsPlayer* Player, plexclient::MediaContainer* Container); + static cControl* Create(plexclient::Video Video); + cHlsPlayerControl(cHlsPlayer* Player, plexclient::Video Video); virtual ~cHlsPlayerControl(); virtual void Show(void); |