diff options
| author | 2010-01-19 10:24:58 -0800 | |
|---|---|---|
| committer | 2010-01-19 10:24:58 -0800 | |
| commit | 5a12413331c8bf9ebb62f84771aaac36baa5fa95 (patch) | |
| tree | 5fec3c6c020eb1bc80312833dff48c816f79c4d8 | |
| parent | 97d1195832829905b07b7680b73bed8af959f430 (diff) | |
| parent | f91f1b4718c122ce88921de962ca9368800dcd90 (diff) | |
Merge "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."
| -rw-r--r-- | media/libstagefright/omx/tests/OMXHarness.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/media/libstagefright/omx/tests/OMXHarness.cpp b/media/libstagefright/omx/tests/OMXHarness.cpp index 2e238991555c..5b45c1ce973d 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; |