video_capture_device.cc revision eb525c5499e34cc9c4b825d6d9e75bb07cc06ace
1// Copyright 2013 The Chromium Authors. All rights reserved.
2// Use of this source code is governed by a BSD-style license that can be
3// found in the LICENSE file.
4
5#include "media/video/capture/video_capture_device.h"
6
7namespace media {
8
9VideoCaptureDevice::Name*
10VideoCaptureDevice::Names::FindById(const std::string& id) {
11  for (iterator it = begin(); it != end(); ++it) {
12    if (it->id() == id)
13      return &(*it);
14  }
15  return NULL;
16}
17
18}  // namespace media
19