diff options
Diffstat (limited to 'media')
| -rw-r--r-- | media/libstagefright/AwesomePlayer.cpp | 7 | 
1 files changed, 6 insertions, 1 deletions
diff --git a/media/libstagefright/AwesomePlayer.cpp b/media/libstagefright/AwesomePlayer.cpp index 161a6ce..8b23da7 100644 --- a/media/libstagefright/AwesomePlayer.cpp +++ b/media/libstagefright/AwesomePlayer.cpp @@ -821,7 +821,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) {  | 
