[vlc-commits] npapi: Disable marquee string getter

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


npapi-vlc | branch: master | Hugo Beauzée-Luyssen <hugo at beauzee.fr> | Fri May 31 17:48:31 2019 +0200| [ae603761dabe96ffee7c13bc79e3a248726b9409] | committer: Hugo Beauzée-Luyssen

npapi: Disable marquee string getter

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

 npapi/npruntime/npolibvlc.cpp | 2 ++
 1 file changed, 2 insertions(+)

diff --git a/npapi/npruntime/npolibvlc.cpp b/npapi/npruntime/npolibvlc.cpp
index af36a27..b8cbdd5 100644
--- a/npapi/npruntime/npolibvlc.cpp
+++ b/npapi/npruntime/npolibvlc.cpp
@@ -1694,9 +1694,11 @@ LibvlcMarqueeNPObject::getProperty(int index, npapi::OutVariant& result)
         result = position_bynumber( mp.marqueeInt( libvlc_marquee_Position ) );
         return INVOKERESULT_NO_ERROR;
 
+#if LIBVLC_VERSION_INT < LIBVLC_VERSION(4, 0, 0, 0)
     case ID_marquee_text:
         result = mp.marqueeString( libvlc_marquee_Text );
         return INVOKERESULT_NO_ERROR;
+#endif
     }
     return INVOKERESULT_GENERIC_ERROR;
 }



More information about the vlc-commits mailing list