npapi-vlc | branch: master | Hugo Beauzée-Luyssen <[email protected]> | Fri May 
31 17:50:52 2019 +0200| [cab2b2961b4cf5c9139aaec39358a3f10ac33dda] | committer: 
Hugo Beauzée-Luyssen

activex: Disable marquee string getter

> https://code.videolan.org/videolan/npapi-vlc/commit/cab2b2961b4cf5c9139aaec39358a3f10ac33dda
---

 activex/vlccontrol2.cpp | 4 ++++
 1 file changed, 4 insertions(+)

diff --git a/activex/vlccontrol2.cpp b/activex/vlccontrol2.cpp
index 43784d2..e4c01d5 100644
--- a/activex/vlccontrol2.cpp
+++ b/activex/vlccontrol2.cpp
@@ -888,10 +888,14 @@ STDMETHODIMP VLCMarquee::get_text(BSTR *val)
     if( NULL == val )
         return E_POINTER;
 
+#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
     auto str = _plug->get_player().get_mp().marqueeString( libvlc_marquee_Text 
);
     if( !str.empty() )
         *val = BSTRFromCStr( CP_UTF8, str.c_str() );
     return S_OK;
+#else
+    return E_INVALIDARG;
+#endif
 }
 
 STDMETHODIMP VLCMarquee::put_text(BSTR val)

_______________________________________________
vlc-commits mailing list
[email protected]
https://mailman.videolan.org/listinfo/vlc-commits

Reply via email to