[vlc-commits] activex: Disable marquee string getter

Hugo Beauzée-Luyssen git at videolan.org
Fri May 31 18:19:11 CEST 2019


npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | 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)



More information about the vlc-commits mailing list