summaryrefslogtreecommitdiff
path: root/src/android
diff options
context:
space:
mode:
Diffstat (limited to 'src/android')
-rw-r--r--src/android/camera_stream.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/android/camera_stream.cpp b/src/android/camera_stream.cpp
index f44a2717..5d991fe5 100644
--- a/src/android/camera_stream.cpp
+++ b/src/android/camera_stream.cpp
@@ -150,6 +150,8 @@ int CameraStream::process(const FrameBuffer &source,
Camera3RequestDescriptor::StreamBuffer &dest,
Camera3RequestDescriptor *request)
{
+ ASSERT(type_ != Type::Direct);
+
/* Handle waiting on fences on the destination buffer. */
if (dest.fence != -1) {
int ret = waitFence(dest.fence);
@@ -163,9 +165,6 @@ int CameraStream::process(const FrameBuffer &source,
dest.fence = -1;
}
- if (!postProcessor_)
- return 0;
-
/*
* \todo Buffer mapping and processing should be moved to a
* separate thread.