Getting the camera pnp adapter running

This commit is contained in:
Peihsun Yeh 2019-08-05 16:44:05 -07:00
Родитель 233fdd9f91
Коммит 8cf03dd2d7
2 изменённых файлов: 2 добавлений и 1 удалений

Просмотреть файл

@ -169,7 +169,7 @@ CameraPnpInterfaceBind(
RETURN_HR_IF (E_UNEXPECTED, 0 != PnpAdapterInterface_Create(&interfaceParams, &adapterInterface))
RETURN_IF_FAILED(pIotPnp->Initialize(PnpAdapterInterface_GetPnpInterfaceClient(adapterInterface), nullptr /* cameraName.c_str() */));
RETURN_IF_FAILED(pIotPnp->Initialize(PnpAdapterInterface_GetPnpInterfaceClient(adapterInterface), cameraName.c_str() ));
RETURN_IF_FAILED (pIotPnp->StartTelemetryWorker());
RETURN_HR_IF (E_UNEXPECTED, 0 != PnpAdapterInterface_SetContext(adapterInterface, (void*)pIotPnp.get()));

Просмотреть файл

@ -34,6 +34,7 @@ CameraStatConsumer::CameraStatConsumer(
, m_hFlushThread(nullptr)
, m_fCoInit(false)
, m_fMfStartup(false)
, m_stats({ 0 })
{
ZeroMemory(m_buffer, sizeof(m_buffer));
ZeroMemory(&m_TraceLogfile, sizeof(m_TraceLogfile));