diff --git a/host/Capture/NvFBC.h b/host/Capture/NvFBC.h index 2770d19e..07050034 100644 --- a/host/Capture/NvFBC.h +++ b/host/Capture/NvFBC.h @@ -17,6 +17,8 @@ this program; if not, write to the Free Software Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA */ +#if CONFIG_CAPTURE_NVFBC + #pragma once #include "ICapture.h" @@ -67,4 +69,6 @@ namespace Capture NvFBCFrameGrabInfo m_grabInfo; NVFBC_TOSYS_GRAB_FRAME_PARAMS m_grabFrameParams; }; -}; \ No newline at end of file +}; + +#endif diff --git a/host/CaptureFactory.h b/host/CaptureFactory.h index c54686df..2d0257bb 100644 --- a/host/CaptureFactory.h +++ b/host/CaptureFactory.h @@ -25,7 +25,9 @@ Place, Suite 330, Boston, MA 02111-1307 USA #include "common/debug.h" #include "ICapture.h" +#if CONFIG_CAPTURE_NVFBC #include "Capture/NvFBC.h" +#endif #include "Capture/DXGI.h" class CaptureFactory @@ -39,7 +41,9 @@ public: if (!devices.empty()) return devices; +#if CONFIG_CAPTURE_NVFBC devices.push_back(new Capture::NvFBC()); +#endif devices.push_back(new Capture::DXGI ()); return devices;