Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(596)

Unified Diff: media/base/android/java/src/org/chromium/media/VideoCaptureTango.java

Issue 1174523002: Use Chromium's Logging instead of Android's Logging for media files (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: hardcoding cr. Created 5 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
Index: media/base/android/java/src/org/chromium/media/VideoCaptureTango.java
diff --git a/media/base/android/java/src/org/chromium/media/VideoCaptureTango.java b/media/base/android/java/src/org/chromium/media/VideoCaptureTango.java
index b3f875fc8da333ec8955ebae46b3e3078650ce7e..9e49afba6bb25b5757a5910596c4379379470452 100644
--- a/media/base/android/java/src/org/chromium/media/VideoCaptureTango.java
+++ b/media/base/android/java/src/org/chromium/media/VideoCaptureTango.java
@@ -6,7 +6,8 @@ package org.chromium.media;
import android.content.Context;
import android.graphics.ImageFormat;
-import android.util.Log;
+
+import org.chromium.base.Log;
import java.nio.ByteBuffer;
import java.util.ArrayList;
@@ -61,7 +62,7 @@ public class VideoCaptureTango extends VideoCaptureCamera {
private static final int SF_OFFSET_4MP_CHROMA = 112;
private static final byte CHROMA_ZERO_LEVEL = 127;
- private static final String TAG = "VideoCaptureTango";
+ private static final String TAG = "cr.media";
static int numberOfCameras() {
return CAM_PARAMS.length;
@@ -180,7 +181,7 @@ public class VideoCaptureTango extends VideoCaptureCamera {
ByteBuffer.wrap(data, startV, sizeV)
.get(mFrameBuffer.array(), sizeY + sizeU, sizeV);
} else {
- Log.e(TAG, "Unknown camera, #id: " + mTangoCameraId);
+ Log.e(TAG, "Unknown camera, #id: %d", mTangoCameraId);
return;
}
mFrameBuffer.rewind(); // Important!

Powered by Google App Engine
This is Rietveld 408576698