[host] added option parsing to application
This commit is contained in:
1 parent
71c6e5d317
commit
6eb40a1897
15 files changed
+462
-94
No files matched your search
+2
-9
@@ -40,19 +40,12 @@ Service::~Service()
|
||||
{
|
||||
}
|
||||
|
||||
bool Service::Initialize()
|
||||
bool Service::Initialize(ICapture * captureDevice)
|
||||
{
|
||||
if (m_initialized)
|
||||
DeInitialize();
|
||||
|
||||
m_capture = CaptureFactory::GetCaptureDevice();
|
||||
if (!m_capture)
|
||||
{
|
||||
DEBUG_ERROR("Failed to initialize capture interface");
|
||||
DeInitialize();
|
||||
return false;
|
||||
}
|
||||
|
||||
m_capture = captureDevice;
|
||||
if (!m_ivshmem->Initialize())
|
||||
{
|
||||
DEBUG_ERROR("IVSHMEM failed to initalize");
|
||||
|
||||
Reference in new issue
Block a user