Commit 8cec1388 authored by Laurent Claustre's avatar Laurent Claustre

Interface Ctor updated with std::string

parent 2c03adff
Pipeline #7862 passed with stages
in 6 minutes and 4 seconds
......@@ -35,7 +35,7 @@ namespace lima
{
DEB_CLASS_NAMESPC(DebModCamera, "Interface", "V4L2");
public:
Interface(const char* dev_path = "/dev/video0");
Interface(const std::string& dev_path = "/dev/video0");
virtual ~Interface();
virtual void getCapList(CapList &) const;
......
......@@ -28,7 +28,7 @@ namespace V4L2
#include <V4L2Interface.h>
%End
public:
Interface(const char* dev_path = "/dev/video0");
Interface(const std::string& dev_path = "/dev/video0");
virtual ~Interface();
virtual void getCapList(std::vector<HwCap> &cap_list /Out/) const;
......
......@@ -31,11 +31,11 @@
using namespace lima;
using namespace lima::V4L2;
Interface::Interface(const char* dev_path)
Interface::Interface(const std::string& dev_path)
{
DEB_CONSTRUCTOR();
m_fd = v4l2_open(dev_path,O_RDWR);
m_fd = v4l2_open(dev_path.c_str(),O_RDWR);
if(m_fd < -1)
THROW_HW_ERROR(Error) << "Error opening: " << dev_path
<< "(" << strerror(errno) << ")";
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment