Cleanup, a previous suggestion had been lost in merge

This commit is contained in:
Emmanuel Durand
2017-01-13 20:55:22 -05:00
parent 542caa26c2
commit 187d93a7ee
2 changed files with 3 additions and 3 deletions
+1 -1
View File
@@ -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;
+2 -2
View File
@@ -655,9 +655,9 @@ shared_ptr<GlWindow> 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