diff --git a/src/image_v4l2.cpp b/src/image_v4l2.cpp index 009bcbf5..352594ba 100644 --- a/src/image_v4l2.cpp +++ b/src/image_v4l2.cpp @@ -688,7 +688,7 @@ void Image_V4L2::registerAttributes() if (index != -1) // Only the index is specified _devicePath = "/dev/video" + to_string(index); else if (path.empty() || path[0] != '/') // No path specified, or an invalid one - _devicePath = "/dev/video0"; + _devicePath = ""; else _devicePath = path; diff --git a/src/scene.cpp b/src/scene.cpp index 658a3826..7836447e 100644 --- a/src/scene.cpp +++ b/src/scene.cpp @@ -655,9 +655,9 @@ shared_ptr Scene::getNewSharedWindow(string name) nvResult &= nvGLJoinSwapGroup(glfwGetX11Display(), glfwGetX11Window(window), 1); nvResult &= nvGLBindSwapBarrier(glfwGetX11Display(), 1, 1); if (nvResult) - Log::get() << Log::MESSAGE << "Scene::" << __FUNCTION__ << " - Window " << name << " successfully joined the NV swap group" << Log::endl; + Log::get() << Log::MESSAGE << "Scene::" << __FUNCTION__ << " - Window " << windowName << " successfully joined the NV swap group" << Log::endl; else - Log::get() << Log::MESSAGE << "Scene::" << __FUNCTION__ << " - Window " << name << " couldn't join the NV swap group" << Log::endl; + Log::get() << Log::MESSAGE << "Scene::" << __FUNCTION__ << " - Window " << windowName << " couldn't join the NV swap group" << Log::endl; } #endif #endif