This source file includes following definitions.
- GetNameAndModel
#include "media/video/capture/video_capture_device.h"
#include "base/strings/string_util.h"
namespace media {
const std::string VideoCaptureDevice::Name::GetNameAndModel() const {
const std::string model_id = GetModel();
if (model_id.empty())
return device_name_;
const std::string suffix = " (" + model_id + ")";
if (EndsWith(device_name_, suffix, true))
return device_name_;
return device_name_ + suffix;
}
VideoCaptureDevice::~VideoCaptureDevice() {}
}