-
Notifications
You must be signed in to change notification settings - Fork 1
/
0006-force-GIPS-treats-the-frame-as-I420.patch
39 lines (35 loc) · 1.57 KB
/
0006-force-GIPS-treats-the-frame-as-I420.patch
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
From daf2f3386d9df666f25e6dcdd55aa2f77603c234 Mon Sep 17 00:00:00 2001
From: slee <[email protected]>
Date: Fri, 7 Jun 2013 11:54:54 +0800
Subject: [PATCH 06/10] force-GIPS-treats-the-frame-as-I420
---
dom/camera/GonkCameraControl.cpp | 2 +-
media/webrtc/signaling/src/media-conduit/VideoConduit.cpp | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/dom/camera/GonkCameraControl.cpp b/dom/camera/GonkCameraControl.cpp
index 5758811..6272a8a 100644
--- a/dom/camera/GonkCameraControl.cpp
+++ b/dom/camera/GonkCameraControl.cpp
@@ -57,7 +57,7 @@ using namespace android;
* still returns the frame data in 'yuv420sp' anyway. So for now, since
* everyone seems to return this format, we just force it.
*/
-#define FORCE_PREVIEW_FORMAT_YUV420SP 1
+#define FORCE_PREVIEW_FORMAT_YUV420SP 0
#define RETURN_IF_NO_CAMERA_HW() \
do { \
diff --git a/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp b/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp
index 471854c..a89b096 100644
--- a/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp
+++ b/media/webrtc/signaling/src/media-conduit/VideoConduit.cpp
@@ -574,6 +574,8 @@ WebrtcVideoConduit::SendVideoFrame(unsigned char* video_frame,
MOZ_ASSERT(PR_FALSE);
return kMediaConduitMalformedArgument;
}
+
+ type = webrtc::kVideoI420;
//Transmission should be enabled before we insert any frames.
if(!mEngineTransmitting)
{
--
1.7.12.4 (Apple Git-37)