Snap for 5443865 from b94a3d3e5461e6148bcb3be96f51e51c8f57c7e2 to pi-qpr3-b-release
Change-Id: I43d0e8616e0a4f2a011ce5e6c83684921458726c
diff --git a/media/libstagefright/ACodec.cpp b/media/libstagefright/ACodec.cpp
index 251420f..7f39d10 100644
--- a/media/libstagefright/ACodec.cpp
+++ b/media/libstagefright/ACodec.cpp
@@ -783,9 +783,6 @@
// need to enable allocation when attaching
surface->getIGraphicBufferProducer()->allowAllocation(true);
- // dequeueBuffer cannot time out
- surface->setDequeueTimeout(-1);
-
// for meta data mode, we move dequeud buffers to the new surface.
// for non-meta mode, we must move all registered buffers
for (size_t i = 0; i < buffers.size(); ++i) {
diff --git a/media/libstagefright/MediaCodec.cpp b/media/libstagefright/MediaCodec.cpp
index c4f0410..353e407 100644
--- a/media/libstagefright/MediaCodec.cpp
+++ b/media/libstagefright/MediaCodec.cpp
@@ -2198,7 +2198,6 @@
}
if (mime.startsWithIgnoreCase("video/")) {
- mSurface->setDequeueTimeout(-1);
mSoftRenderer = new SoftwareRenderer(mSurface, mRotationDegrees);
}
}
@@ -2486,7 +2485,6 @@
&& (mFlags & kFlagPushBlankBuffersOnShutdown)) {
pushBlankBuffersToNativeWindow(mSurface.get());
}
- surface->setDequeueTimeout(-1);
mSoftRenderer = new SoftwareRenderer(surface);
// TODO: check if this was successful
} else {