Skip to content
This repository has been archived by the owner on Nov 3, 2021. It is now read-only.

Commit

Permalink
Bug 1131298 - Avoid crash in CameraService
Browse files Browse the repository at this point in the history
  • Loading branch information
Mike Habicher authored and michaelwu committed Feb 12, 2015
1 parent 65f5144 commit a920312
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions services/camera/libcameraservice/CameraService.cpp
Expand Up @@ -866,6 +866,9 @@ void CameraService::setCameraFree(int cameraId) {
// media players.

MediaPlayer* CameraService::newMediaPlayer(const char *file) {
// We don't use service-layer sound effects.
return NULL;

MediaPlayer* mp = new MediaPlayer();
if (mp->setDataSource(file, NULL) == NO_ERROR) {
mp->setAudioStreamType(AUDIO_STREAM_ENFORCED_AUDIBLE);
Expand Down

0 comments on commit a920312

Please sign in to comment.