diff MediaPlayer.h @ 2430:cb66a1082fcf

* ITrack, IMovie now properly propogate destructors * VideoPlayer correctly deallocates memory after playing a movie
author a.parshin
date Wed, 23 Jul 2014 20:28:28 +0300
parents 33659ef7fbac
children 90349b8048a5
line wrap: on
line diff
--- a/MediaPlayer.h	Wed Jul 23 19:42:39 2014 +0300
+++ b/MediaPlayer.h	Wed Jul 23 20:28:28 2014 +0300
@@ -5,14 +5,20 @@
   class ITrack
   {
     public:
-		virtual void Play(bool loop = false) = 0;
+      virtual ~ITrack() {}
+
+	  virtual void Play(bool loop = false) = 0;
+      virtual void Release() = 0;
   };
 
   class IMovie
   {
     public: 
-		virtual void Play() = 0;
-        virtual void GetNextFrame(double dt, void *target_surface) = 0;
+      virtual ~IMovie() {}
+
+	  virtual void Play() = 0;
+      virtual void GetNextFrame(double dt, void *target_surface) = 0;
+      virtual void Release() = 0;
   };
 
   class MPlayer