[Fix] Use shared pointer for the player in CApplication, fix double PlayFile call...
[vuplus_xbmc] / xbmc / Application.h
index 7c43962..88fde9e 100644 (file)
@@ -266,7 +266,7 @@ public:
   MEDIA_DETECT::CDetectDVDMedia m_DetectDVDType;
 #endif
 
-  IPlayer* m_pPlayer;
+  boost::shared_ptr<IPlayer> m_pPlayer;
 
   inline bool IsInScreenSaver() { return m_bScreenSave; };
   int m_iScreenSaveLock; // spiff: are we checking for a lock? if so, ignore the screensaver state, if -1 we have failed to input locks