setDequeueTimeout(-1) on the output surface

This ensures that allocation blocks in ACodec.

Test: make cts -j123 && cts-tradefed run cts-dev -m \
CtsMediaTestCases --compatibility:module-arg \
CtsMediaTestCases:include-annotation:\
android.platform.test.annotations.RequiresDevice

Bug: 120466624
Change-Id: I2fd0cbdf37324c9fc774fb9adf3e39a486cb2129
(cherry picked from commit 4e660b6e2f2af04f1c2e2888f4cfac740f0e0c9d)
2 files changed