Bug 932692 - Remove unused rotation variables in Android WebRTC driver. r=blassey
authorGian-Carlo Pascutto <gpascutto@mozilla.com>
Fri, 22 Nov 2013 09:54:44 +0100
changeset 157375 03ece8541cd13bfd705e1a2e1e03ccf9f9b8e5cc
parent 157374 a5585091e1e2e50a8d6a96f24d1ffba2a4351ad9
child 157376 fa0d790596e9275fe483afb10a8303e02d98d647
push id270
push userpvanderbeken@mozilla.com
push dateThu, 06 Mar 2014 09:24:21 +0000
reviewersblassey
bugs932692
milestone28.0a1
Bug 932692 - Remove unused rotation variables in Android WebRTC driver. r=blassey
media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc
--- a/media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc
+++ b/media/webrtc/trunk/webrtc/modules/video_capture/android/video_capture_android.cc
@@ -303,18 +303,16 @@ int32_t VideoCaptureAndroid::Init(const 
   AutoLocalJNIFrame jniFrame;
   JNIEnv* env = jniFrame.GetEnv();
   if (!env)
       return -1;
 
   jclass javaCmDevInfoClass = jniFrame.GetCmDevInfoClass();
   jobject javaCmDevInfoObject = jniFrame.GetCmDevInfoObject();
 
-  int32_t rotation = 0;
-
   WEBRTC_TRACE(webrtc::kTraceDebug, webrtc::kTraceVideoCapture, _id,
                "get method id");
   // get the method ID for the Android Java
   // CaptureDeviceInfoClass AllocateCamera factory method.
   char signature[256];
   sprintf(signature, "(IJLjava/lang/String;)L%s;", AndroidJavaCaptureClass);
 
   jmethodID cid = env->GetMethodID(javaCmDevInfoClass, "AllocateCamera",
@@ -388,17 +386,16 @@ VideoCaptureAndroid::~VideoCaptureAndroi
 
 int32_t VideoCaptureAndroid::StartCapture(
     const VideoCaptureCapability& capability) {
   CriticalSectionScoped cs(&_apiCs);
   WEBRTC_TRACE(webrtc::kTraceStateInfo, webrtc::kTraceVideoCapture, -1,
                "%s: ", __FUNCTION__);
 
   int32_t result = 0;
-  int32_t rotation = 0;
 
   AutoLocalJNIFrame jniFrame;
   JNIEnv* env = jniFrame.GetEnv();
   if (!env)
       return -1;
 
   if (_capInfo.GetBestMatchedCapability(_deviceUniqueId, capability,
                                         _frameInfo) < 0) {