MediaPlayer::setDataSource() doesn't fail with a non-existing file. So we should check the result of MediaPlayer::prepare() as well. Note that MediaPlayer::disconnect() is called instead of deleting MediaPlayer directly because the latter causes crash of CameraService. MediaPlayer::disconnect() is called even in CameraService::releaseSound(). Bug: 74376839 Test: tested an app using CameraService Change-Id: Idf68837a55d14ad47dbbedff0256269bd90f9dfdgugelfrei
parent
1c57a0e6e0
commit
ef49805296
Loading…
Reference in new issue