diff options
author | Anu Sundararajan <sanuradha@ti.com> | 2011-04-14 17:09:35 -0500 |
---|---|---|
committer | Anu Sundararajan <sanuradha@ti.com> | 2011-04-14 17:09:35 -0500 |
commit | 972c502722d52cced15a0e4b5cb303ccf3f890ed (patch) | |
tree | c09fca01ec5f3b38552d6b769c8a3e2fe0d1a4ce /drm/drmserver/StringTokenizer.cpp | |
parent | 0c0a1c0c37dbd2646a732da706d6777283c83e44 (diff) | |
download | frameworks_av-972c502722d52cced15a0e4b5cb303ccf3f890ed.zip frameworks_av-972c502722d52cced15a0e4b5cb303ccf3f890ed.tar.gz frameworks_av-972c502722d52cced15a0e4b5cb303ccf3f890ed.tar.bz2 |
Stagefright: Return error if codec takes too long to return a buffer.
There are many scenarios where the codec may not return a valid buffer.
In such a case, the OMXCodec::read() call hangs indefitely. Therefore,
wait() call is replaced with waitRelative() so that it timesout after a
few seconds and we exit gracefully.
Change-Id: Ie03c5d1e979b71f6253efcaa0665aa5e541cebe2
Signed-off-by: Anu Sundararajan <sanuradha@ti.com>
Diffstat (limited to 'drm/drmserver/StringTokenizer.cpp')
0 files changed, 0 insertions, 0 deletions