X-Git-Url: https://git.sesse.net/?a=blobdiff_plain;f=activex%2Fpersiststreaminit.h;h=48f83c6f0a165bdf84db21f59528667b51cd223a;hb=a6970967ffb15734e2e70fcd60501e2cf474ce1a;hp=8d8cc934e4de9a712293486dcac6a740d3977f85;hpb=3d831e04ece115bb9ca379b9552370755453e46e;p=vlc diff --git a/activex/persiststreaminit.h b/activex/persiststreaminit.h index 8d8cc934e4..48f83c6f0a 100644 --- a/activex/persiststreaminit.h +++ b/activex/persiststreaminit.h @@ -1,7 +1,7 @@ /***************************************************************************** * persiststreaminit.h: ActiveX control for VLC ***************************************************************************** - * Copyright (C) 2005 VideoLAN + * Copyright (C) 2005 the VideoLAN team * * Authors: Damien Fouilleul * @@ -30,8 +30,8 @@ class VLCPersistStreamInit : public IPersistStreamInit public: - VLCPersistStreamInit(VLCPlugin *p_instance) : _p_instance(p_instance) {}; - virtual ~VLCPersistStreamInit() {}; + VLCPersistStreamInit(VLCPlugin *p_instance); + virtual ~VLCPersistStreamInit(); // IUnknown methods STDMETHODIMP QueryInterface(REFIID riid, void **ppv) @@ -44,11 +44,11 @@ public: *ppv = reinterpret_cast(this); return NOERROR; } - return _p_instance->QueryInterface(riid, ppv); + return _p_instance->pUnkOuter->QueryInterface(riid, ppv); }; - STDMETHODIMP_(ULONG) AddRef(void) { return _p_instance->AddRef(); }; - STDMETHODIMP_(ULONG) Release(void) { return _p_instance->Release(); }; + STDMETHODIMP_(ULONG) AddRef(void) { return _p_instance->pUnkOuter->AddRef(); }; + STDMETHODIMP_(ULONG) Release(void) { return _p_instance->pUnkOuter->Release(); }; // IPersist methods STDMETHODIMP GetClassID(LPCLSID); @@ -63,6 +63,7 @@ public: private: VLCPlugin *_p_instance; + class VLCPropertyBag *_p_props; }; #endif