You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: visionSamples/barcode-reader/app/src/main/java/com/google/android/gms/samples/vision/barcodereader/ui/camera/CameraSource.java
+7-1Lines changed: 7 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -861,6 +861,12 @@ void setNextFrame(byte[] data, Camera camera) {
861
861
mPendingFrameData = null;
862
862
}
863
863
864
+
if (!mBytesToByteBuffer.containsKey(data)) {
865
+
Log.d(TAG, "Skipping frame. Could not find ByteBuffer associated with the " +
866
+
"image data from the camera.");
867
+
return;
868
+
}
869
+
864
870
// Timestamp and frame ID are maintained here, which will give downstream code some
865
871
// idea of the timing of frames received and when frames were dropped along the way.
0 commit comments