[vlc-commits] Don't compile WindowlessBase if not needed

Jean-Baptiste Kempf git at videolan.org
Tue Dec 18 17:27:02 CET 2012


npapi-vlc | branch: windowless | Jean-Baptiste Kempf <jb at videolan.org> | Fri Dec 14 14:46:19 2012 +0100| [d71f9f6db446297a20f87a7c0b9b58b5be881aa5] | committer: Jean-Baptiste Kempf

Don't compile WindowlessBase if not needed

> http://git.videolan.org/gitweb.cgi/npapi-vlc.git/?a=commit;h=d71f9f6db446297a20f87a7c0b9b58b5be881aa5
---

 npapi/vlcplugin_base.cpp |    2 ++
 npapi/vlcplugin_base.h   |    3 ++-
 2 files changed, 4 insertions(+), 1 deletion(-)

diff --git a/npapi/vlcplugin_base.cpp b/npapi/vlcplugin_base.cpp
index 14218b3..dc9f9c7 100644
--- a/npapi/vlcplugin_base.cpp
+++ b/npapi/vlcplugin_base.cpp
@@ -534,6 +534,7 @@ bool VlcPluginBase::canUseEventListener()
     return false;
 }
 
+#ifdef WINDOWLESS
 VlcWindowlessBase::VlcWindowlessBase(NPP instance, NPuint16_t mode) :
     VlcPluginBase(instance, mode)
 {
@@ -621,3 +622,4 @@ void VlcWindowlessBase::set_player_window() {
                                video_display_proxy,
                                this);
 }
+#endif
diff --git a/npapi/vlcplugin_base.h b/npapi/vlcplugin_base.h
index fe4ff0a..57ebe04 100644
--- a/npapi/vlcplugin_base.h
+++ b/npapi/vlcplugin_base.h
@@ -215,7 +215,7 @@ private:
 #endif
 
 
-
+#ifdef WINDOWLESS
 const char DEF_CHROMA[] = "RV32";
 enum{
     DEF_PIXEL_BYTES = 4
@@ -280,5 +280,6 @@ protected:
     unsigned int m_media_width;
     unsigned int m_media_height;
 };
+#endif
 
 #endif



More information about the vlc-commits mailing list