Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit f91f1b47 authored by Andreas Huber's avatar Andreas Huber
Browse files

Make sure the seek test attempts to seek on the very first iteration, as this...

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.
parent faddd5d7
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -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;