From 75df6873fadddf89fcea4ce26d4147a95177f819 Mon Sep 17 00:00:00 2001 From: "sarandogou0@gmail.com" Date: Sat, 31 Jan 2015 00:31:15 +0100 Subject: [PATCH] Release 1.2.2 Fix issue #18 Fix issue #19 --- common/_Config.h | 2 +- common/webrtc-everywhere-common.rc | Bin 6920 -> 6920 bytes ie/WebRTC.cc | 51 ++++++++++++++-------- ie/WebRTC.h | 6 ++- ie/webrtc-everywhere.aps | Bin 16232 -> 16136 bytes ie/webrtc-everywhere.rc | 8 ++-- npapi/Release/webrtc-everywhere-npapi.res | Bin 1060 -> 1060 bytes npapi/Utils.cc | 2 +- npapi/webrtc-everywhere-npapi.rc | 8 ++-- wininstall/innosetup.iss | 2 +- 10 files changed, 47 insertions(+), 32 deletions(-) diff --git a/common/_Config.h b/common/_Config.h index d590cfd..6cfbd3f 100755 --- a/common/_Config.h +++ b/common/_Config.h @@ -18,7 +18,7 @@ # define kPluginVersionMinor 2 #endif #if !defined(kPluginVersionMicro) -# define kPluginVersionMicro 1 +# define kPluginVersionMicro 2 #endif #if !defined(kPluginVersionString) # define kPluginVersionString WE_STRING(WE_CAT(kPluginVersionMajor, .)) WE_STRING(WE_CAT(kPluginVersionMinor, .)) WE_STRING(kPluginVersionMicro) diff --git a/common/webrtc-everywhere-common.rc b/common/webrtc-everywhere-common.rc index 66d282b2a9e04c1bf1e9b8fe67f503e23d03db8d..0f85aa7839dc157961ef88a33fce98b5033a7525 100755 GIT binary patch delta 34 ncmeA$>oD6;!@+1Yxt7C_(P;B}4n}4mwUIlX2}lX@edhrHv`q=w delta 34 ncmeA$>oD6;!@+1cxt7C_(Qxy64n}4mwUIlX2}lX@edhrHvGetContainer(&m_spContainer); + if (SUCCEEDED(hr)) { + hr = m_spContainer->QueryInterface(IID_PPV_ARGS(&m_spDoc)); + if (SUCCEEDED(hr)) { + hr = m_spDoc->get_parentWindow(&m_spWindow); + if (SUCCEEDED(hr)) { + hr = m_spWindow->get_location(&m_spLocation); + } + } + } + return hr; + } + return E_UNEXPECTED; +} + // IOleObjectImpl::SetClientSite() STDMETHODIMP CWebRTC::SetClientSite(_Inout_opt_ IOleClientSite *pClientSite) { HRESULT hr = IOleObjectImpl::SetClientSite(pClientSite); // call base function if (SUCCEEDED(hr) && m_spClientSite) { +#if 0 HRESULT _hr = m_spClientSite->QueryInterface(IID_PPV_ARGS(&m_spPresentSite)); if (FAILED(_hr)) { // IViewObjectPresentSite only supported on IE9 and later @@ -87,27 +110,17 @@ STDMETHODIMP CWebRTC::SetClientSite(_Inout_opt_ IOleClientSite *pClientSite) else { /*hr = */m_spPresentSite->SetCompositionMode(VIEW_OBJECT_COMPOSITION_MODE_SURFACEPRESENTER); } +#endif - HRESULT hr = S_OK; - - _hr = m_spClientSite->GetContainer(&m_spContainer); - if (SUCCEEDED(_hr)) { - _hr = m_spContainer->QueryInterface(IID_PPV_ARGS(&m_spDoc)); - if (SUCCEEDED(_hr)) { - _hr = m_spDoc->get_parentWindow(&m_spWindow); - if (SUCCEEDED(_hr)) { - _hr = m_spWindow->get_location(&m_spLocation); - } - } - } - - if (m_spWindow) { - _hr = Utils::InstallScripts(m_spWindow); + if (SUCCEEDED(QueryWindow())) { + hr = Utils::InstallScripts(m_spWindow); } } return hr; } +#if 0 + // IPersistPropertyBagImpl::Load STDMETHODIMP CWebRTC::Load(__RPC__in_opt IPropertyBag *pPropBag, __RPC__in_opt IErrorLog *pErrorLog) { @@ -289,7 +302,7 @@ STDMETHODIMP CWebRTC::createDisplay(__out IDispatch** ppDisplay) STDMETHODIMP CWebRTC::getUserMedia(VARIANT constraints, VARIANT successCallback, VARIANT errorCallback) { HRESULT hr = S_OK; - + CComPtr_constraints = Utils::VariantToDispatch(constraints); CComPtr_successCallback = Utils::VariantToDispatch(successCallback); CComPtr_errorCallback = Utils::VariantToDispatch(errorCallback); @@ -619,7 +632,7 @@ STDMETHODIMP CWebRTC::get_isWebRtcPlugin(__out VARIANT_BOOL* pVal) HRESULT CWebRTC::GetDispatch(CComPtr &spDispatch) { if (!m_spWindow) { - CHECK_HR_RETURN(E_POINTER); + CHECK_HR_RETURN(QueryWindow()); } CHECK_HR_RETURN(m_spWindow->QueryInterface(IID_PPV_ARGS(&spDispatch))); @@ -629,7 +642,7 @@ HRESULT CWebRTC::GetDispatch(CComPtr &spDispatch) HRESULT CWebRTC::GetHTMLWindow2(CComPtr &spWindow2) { if (!m_spWindow) { - CHECK_HR_RETURN(E_POINTER); + CHECK_HR_RETURN(QueryWindow()); } spWindow2 = m_spWindow; return S_OK; diff --git a/ie/WebRTC.h b/ie/WebRTC.h index b482857..7188a7c 100755 --- a/ie/WebRTC.h +++ b/ie/WebRTC.h @@ -209,10 +209,9 @@ class ATL_NO_VTABLE CWebRTC : STDMETHOD(get_videoHeight)(__out LONG* pVal); STDMETHOD(get_isWebRtcPlugin)(__out VARIANT_BOOL* pVal); -#if 0 // IOleObjectImpl::SetClientSite() STDMETHOD(SetClientSite)(_Inout_opt_ IOleClientSite *pClientSite); - +#if 0 // IPersistPropertyBagImpl::Load STDMETHOD(Load)(__RPC__in_opt IPropertyBag *pPropBag, __RPC__in_opt IErrorLog *pErrorLog); @@ -231,6 +230,9 @@ class ATL_NO_VTABLE CWebRTC : HRESULT GetDispatch(CComPtr &spDispatch); HRESULT GetHTMLWindow2(CComPtr &spWindow2); + private: + HRESULT QueryWindow(); + private: _Buffer *m_pTempVideoBuff; std::vector>m_callbacks_onplay; diff --git a/ie/webrtc-everywhere.aps b/ie/webrtc-everywhere.aps index e5d8e7843c853d746e4d071cc3d35d843d08232f..f1ae0f670266c5dfaf4bca56a3794cdb7f658a23 100755 GIT binary patch delta 1795 zcmZ{kOH3PA6o$`?VR(6J@C#$GJv^K^B0$C^UX?P9h=r;}LUh6y+eDKH=g3e3V3 z@$+zj@)ek*>^XWek4f%x0gjR$0G&T$@CNZ2c#Aw(e2D5N_-IOYLXY-tI>>u`iz!jz*zD>P+$$Fpzn%q-C2QY|T{!gg1etBL$3 zpqb`4MHg!?6Zz29cK~5E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koC&+ zk#QICj?HzmGH|!g7Di&)R3BN#w}FL(S)MtvX;v! zGQ&jsELy^8E`3PNrcF(sG!&h0JSnK|_(F$A5!rk@xsEnOl@+RBhAL;W+*82uE{<(S z#?;d??S&Mvcq!iQaA&!+%qHcBhaC$lt|Ub*?QWZZA3rKq&LkeQcsZ7LwhZvGDmJpR zA1z6WTf#kCC=JkO`77~8qH3okB`mWFOOthECN0yA^GWw!Nm^f7^?EjjkB4$hEg9u}ybqY)?;n;h*z1XV}RmidCD?RfIM zxZ;o;W8lG`9YbYdn&Bk<(N#pA9%t6(Ve7f{@q(Et-I*jelu-c)Kt=6 zQ(dlW0>CHuYS6oz?+-O=borkY@teVhq6Z|N-GLuT9(p*I*?Vze=ab(H_Cze~vTGiH zBG_&DEKT?5-Ff`Bq#+@K3f0}5dOA@0KP}Q`6SzLk-o>cA_66w|F(>fXEBBT Gp#Oj7G{BSq diff --git a/ie/webrtc-everywhere.rc b/ie/webrtc-everywhere.rc index 1618c66..a21fe9a 100755 --- a/ie/webrtc-everywhere.rc +++ b/ie/webrtc-everywhere.rc @@ -57,8 +57,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,2,0,1 - PRODUCTVERSION 1,2,0,1 + FILEVERSION 1,2,0,2 + PRODUCTVERSION 1,2,0,2 FILEFLAGSMASK 0x3fL #ifdef _DEBUG FILEFLAGS 0x1L @@ -75,12 +75,12 @@ BEGIN BEGIN VALUE "CompanyName", "Sarandogou" VALUE "FileDescription", "WebRTC plugin for Safari, IE, Chrome, Opera and Firefox" - VALUE "FileVersion", "1.2.0.1" + VALUE "FileVersion", "1.2.0.2" VALUE "LegalCopyright", "(c) 2014-2015 Sarandogou. All rights reserved." VALUE "InternalName", "webrtc-everywhere-ie.dll" VALUE "OriginalFilename", "webrtc-everywhere-ie.dll" VALUE "ProductName", "WebRTC Everywhere Plugin" - VALUE "ProductVersion", "1.2.0.1" + VALUE "ProductVersion", "1.2.0.2" END END BLOCK "VarFileInfo" diff --git a/npapi/Release/webrtc-everywhere-npapi.res b/npapi/Release/webrtc-everywhere-npapi.res index ef5afc52cad16d13a24a045a183a3315da853228..cf7ab83793a56924450e7970d1113119e4b7a722 100755 GIT binary patch delta 33 pcmZ3&v4mqn2`3W+0|OHSBLmaM+Hgijqs>evaluate(npp, npWindow, &npScript, &var)) { CHECK_NPERR_BAIL(err = NPERR_GENERIC_ERROR); } diff --git a/npapi/webrtc-everywhere-npapi.rc b/npapi/webrtc-everywhere-npapi.rc index 4dc273c..bdd4895 100755 --- a/npapi/webrtc-everywhere-npapi.rc +++ b/npapi/webrtc-everywhere-npapi.rc @@ -53,8 +53,8 @@ END // VS_VERSION_INFO VERSIONINFO - FILEVERSION 1,2,0,1 - PRODUCTVERSION 1,2,0,1 + FILEVERSION 1,2,0,2 + PRODUCTVERSION 1,2,0,2 FILEFLAGSMASK 0x17L #ifdef _DEBUG FILEFLAGS 0x1L @@ -71,13 +71,13 @@ BEGIN BEGIN VALUE "CompanyName", "Sarandogou" VALUE "FileDescription", "WebRTC plugin for Safari, IE, Chrome, Opera and Firefox" - VALUE "FileVersion", "1.2.0.1" + VALUE "FileVersion", "1.2.0.2" VALUE "InternalName", "npwebrtc-everywhere.dll" VALUE "LegalCopyright", "(c) 2014-2015 Sarandogou. All rights reserved." VALUE "MIMEType", "application/webrtc-everywhere" VALUE "OriginalFilename", "npwebrtc-everywhere.dll" VALUE "ProductName", "WebRTC Everywhere Plugin" - VALUE "ProductVersion", "1.2.0.1" + VALUE "ProductVersion", "1.2.0.2" END END BLOCK "VarFileInfo" diff --git a/wininstall/innosetup.iss b/wininstall/innosetup.iss index 2922a45..ae184b5 100755 --- a/wininstall/innosetup.iss +++ b/wininstall/innosetup.iss @@ -2,7 +2,7 @@ ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES! #define MyAppName "webrtc-everywhere" -#define MyAppVersion "1.2.0.1" +#define MyAppVersion "1.2.0.2" #define MyAppPublisher "Sarandogou" #define MyAppURL "https://ns313841.ovh.net/webrtc/"