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

Commit eacfe838 authored by Andreas Huber's avatar Andreas Huber Committed by Android (Google) Code Review
Browse files

Merge "Disable vorbis-auto-looping if the audio sink used is not realtime, i.e. recording."

parents 583b163f 4960f3a6
Loading
Loading
Loading
Loading
+6 −1
Original line number Diff line number Diff line
@@ -820,7 +820,12 @@ void AwesomePlayer::onStreamDone() {
        return;
    }

    if (mFlags & (LOOPING | AUTO_LOOPING)) {
    if ((mFlags & LOOPING)
            || ((mFlags & AUTO_LOOPING)
                && (mAudioSink == NULL || mAudioSink->realtime()))) {
        // Don't AUTO_LOOP if we're being recorded, since that cannot be
        // turned off and recording would go on indefinitely.

        seekTo_l(0);

        if (mVideoSource != NULL) {