Added
Link Here
|
1 |
--- media/video/capture/video_capture_device.h.orig 2015-06-19 21:22:59 UTC |
2 |
+++ media/video/capture/video_capture_device.h |
3 |
@@ -41,7 +41,7 @@ |
4 |
Name(); |
5 |
Name(const std::string& name, const std::string& id); |
6 |
|
7 |
-#if defined(OS_LINUX) |
8 |
+#if defined(OS_LINUX) || defined(OS_BSD) |
9 |
// Linux/CrOS targets Capture Api type: it can only be set on construction. |
10 |
enum CaptureApiType { |
11 |
V4L2_SINGLE_PLANE, |
12 |
@@ -85,7 +85,7 @@ |
13 |
#endif |
14 |
|
15 |
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ |
16 |
- defined(OS_ANDROID) |
17 |
+ defined(OS_ANDROID) || defined(OS_BSD) |
18 |
Name(const std::string& name, const std::string& id, |
19 |
const CaptureApiType api_type); |
20 |
#endif |
21 |
@@ -123,7 +123,7 @@ |
22 |
} |
23 |
|
24 |
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ |
25 |
- defined(OS_ANDROID) |
26 |
+ defined(OS_ANDROID) || defined(OS_BSD) |
27 |
CaptureApiType capture_api_type() const { |
28 |
return capture_api_class_.capture_api_type(); |
29 |
} |
30 |
@@ -155,7 +155,7 @@ |
31 |
std::string device_name_; |
32 |
std::string unique_id_; |
33 |
#if defined(OS_WIN) || defined(OS_MACOSX) || defined(OS_LINUX) || \ |
34 |
- defined(OS_ANDROID) |
35 |
+ defined(OS_ANDROID) || defined(OS_BSD) |
36 |
// This class wraps the CaptureApiType to give it a by default value if not |
37 |
// initialized. |
38 |
class CaptureApiClass { |