Index: trunk/src/media/video/capture/video_capture_device.cc |
=================================================================== |
--- trunk/src/media/video/capture/video_capture_device.cc (revision 235779) |
+++ trunk/src/media/video/capture/video_capture_device.cc (working copy) |
@@ -17,6 +17,15 @@ |
return device_name_ + suffix; |
} |
+VideoCaptureDevice::Name* |
+VideoCaptureDevice::Names::FindById(const std::string& id) { |
+ for (iterator it = begin(); it != end(); ++it) { |
+ if (it->id() == id) |
+ return &(*it); |
+ } |
+ return NULL; |
+} |
+ |
VideoCaptureDevice::~VideoCaptureDevice() {} |
} // namespace media |