summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2010-01-14 13:33:50 -0800
committerAndreas Huber <andih@google.com>2010-01-14 14:08:25 -0800
commitf91f1b4718c122ce88921de962ca9368800dcd90 (patch)
treeb6d8c629f3857761ccc74573d2a42e43bf5cd3f8 /media
parentfaddd5d7d63d217a3e5201b6e7f476f1a0152a94 (diff)
downloadframeworks_base-f91f1b4718c122ce88921de962ca9368800dcd90.zip
frameworks_base-f91f1b4718c122ce88921de962ca9368800dcd90.tar.gz
frameworks_base-f91f1b4718c122ce88921de962ca9368800dcd90.tar.bz2
Make sure the seek test attempts to seek on the very first iteration, as this appears to be a special case that decoders frequently get wrong.
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/omx/tests/OMXHarness.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/omx/tests/OMXHarness.cpp b/media/libstagefright/omx/tests/OMXHarness.cpp
index 2e23899..5b45c1c 100644
--- a/media/libstagefright/omx/tests/OMXHarness.cpp
+++ b/media/libstagefright/omx/tests/OMXHarness.cpp
@@ -586,14 +586,14 @@ status_t Harness::testSeek(
double r = uniform_rand();
- if (r < 0.5) {
+ if (i > 0 && r < 0.5) {
// 50% chance of just continuing to decode from last position.
requestedSeekTimeUs = -1;
LOGI("requesting linear read");
} else {
- if (r < 0.55) {
+ if (i > 0 && r < 0.55) {
// 5% chance of seeking beyond end of stream.
requestedSeekTimeUs = durationUs;