Loading media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -628,6 +628,16 @@ void NuPlayerDriver::notifyListener_l( case MEDIA_PLAYBACK_COMPLETE: { if (mState != STATE_RESET_IN_PROGRESS) { if (mAutoLoop) { audio_stream_type_t streamType = AUDIO_STREAM_MUSIC; if (mAudioSink != NULL) { streamType = mAudioSink->getAudioStreamType(); } if (streamType == AUDIO_STREAM_NOTIFICATION) { ALOGW("disabling auto-loop for notification"); mAutoLoop = false; } } if (mLooping || (mAutoLoop && (mAudioSink == NULL || mAudioSink->realtime()))) { mPlayer->seekToAsync(0); Loading media/libstagefright/AwesomePlayer.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -878,6 +878,16 @@ void AwesomePlayer::onStreamDone() { return; } if (mFlags & AUTO_LOOPING) { audio_stream_type_t streamType = AUDIO_STREAM_MUSIC; if (mAudioSink != NULL) { streamType = mAudioSink->getAudioStreamType(); } if (streamType == AUDIO_STREAM_NOTIFICATION) { ALOGW("disabling auto-loop for notification"); modifyFlags(AUTO_LOOPING, CLEAR); } } if ((mFlags & LOOPING) || ((mFlags & AUTO_LOOPING) && (mAudioSink == NULL || mAudioSink->realtime()))) { Loading Loading
media/libmediaplayerservice/nuplayer/NuPlayerDriver.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -628,6 +628,16 @@ void NuPlayerDriver::notifyListener_l( case MEDIA_PLAYBACK_COMPLETE: { if (mState != STATE_RESET_IN_PROGRESS) { if (mAutoLoop) { audio_stream_type_t streamType = AUDIO_STREAM_MUSIC; if (mAudioSink != NULL) { streamType = mAudioSink->getAudioStreamType(); } if (streamType == AUDIO_STREAM_NOTIFICATION) { ALOGW("disabling auto-loop for notification"); mAutoLoop = false; } } if (mLooping || (mAutoLoop && (mAudioSink == NULL || mAudioSink->realtime()))) { mPlayer->seekToAsync(0); Loading
media/libstagefright/AwesomePlayer.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -878,6 +878,16 @@ void AwesomePlayer::onStreamDone() { return; } if (mFlags & AUTO_LOOPING) { audio_stream_type_t streamType = AUDIO_STREAM_MUSIC; if (mAudioSink != NULL) { streamType = mAudioSink->getAudioStreamType(); } if (streamType == AUDIO_STREAM_NOTIFICATION) { ALOGW("disabling auto-loop for notification"); modifyFlags(AUTO_LOOPING, CLEAR); } } if ((mFlags & LOOPING) || ((mFlags & AUTO_LOOPING) && (mAudioSink == NULL || mAudioSink->realtime()))) { Loading