summaryrefslogtreecommitdiff
path: root/avmedia/source/win/player.hxx
diff options
context:
space:
mode:
Diffstat (limited to 'avmedia/source/win/player.hxx')
-rw-r--r--avmedia/source/win/player.hxx23
1 files changed, 10 insertions, 13 deletions
diff --git a/avmedia/source/win/player.hxx b/avmedia/source/win/player.hxx
index 84e2689c0397..1563d549a85e 100644
--- a/avmedia/source/win/player.hxx
+++ b/avmedia/source/win/player.hxx
@@ -29,6 +29,7 @@
#include <cppuhelper/compbase.hxx>
#include <cppuhelper/basemutex.hxx>
+#include <systools/win32/comtools.hxx>
struct IGraphBuilder;
struct IBaseFilter;
@@ -50,7 +51,8 @@ typedef ::cppu::WeakComponentImplHelper< css::media::XPlayer,
class Player : public cppu::BaseMutex,
- public Player_BASE
+ public Player_BASE,
+ public sal::systools::CoInitializeGuard
{
public:
@@ -92,23 +94,18 @@ public:
private:
OUString maURL;
- IGraphBuilder* mpGB;
- IBaseFilter* mpOMF;
- IMediaControl* mpMC;
- IMediaEventEx* mpME;
- IMediaSeeking* mpMS;
- IMediaPosition* mpMP;
- IBasicAudio* mpBA;
- IBasicVideo* mpBV;
- IVideoWindow* mpVW;
- IDDrawExclModeVideo* mpEV;
+ sal::systools::COMReference<IGraphBuilder> mpGB;
+ sal::systools::COMReference<IMediaControl> mpMC;
+ sal::systools::COMReference<IMediaEventEx> mpME;
+ sal::systools::COMReference<IMediaPosition> mpMP;
+ sal::systools::COMReference<IBasicAudio> mpBA;
+ sal::systools::COMReference<IBasicVideo> mpBV;
+ sal::systools::COMReference<IVideoWindow> mpVW;
long mnUnmutedVolume;
HWND mnFrameWnd;
bool mbMuted;
bool mbLooping;
bool mbAddWindow;
-
- void ImplLayoutVideoWindow();
};
} // namespace avmedia::win