comparison 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
comparison
equal deleted inserted replaced
2429:6d5877899730 2430:cb66a1082fcf
3 namespace Media 3 namespace Media
4 { 4 {
5 class ITrack 5 class ITrack
6 { 6 {
7 public: 7 public:
8 virtual void Play(bool loop = false) = 0; 8 virtual ~ITrack() {}
9
10 virtual void Play(bool loop = false) = 0;
11 virtual void Release() = 0;
9 }; 12 };
10 13
11 class IMovie 14 class IMovie
12 { 15 {
13 public: 16 public:
14 virtual void Play() = 0; 17 virtual ~IMovie() {}
15 virtual void GetNextFrame(double dt, void *target_surface) = 0; 18
19 virtual void Play() = 0;
20 virtual void GetNextFrame(double dt, void *target_surface) = 0;
21 virtual void Release() = 0;
16 }; 22 };
17 23
18 class MPlayer 24 class MPlayer
19 { 25 {
20 public: 26 public: