From d4461e766438fc714a145213ed565fb6b6886c62 Mon Sep 17 00:00:00 2001 From: Andreas Huber Date: Thu, 28 Jan 2010 11:19:57 -0800 Subject: [PATCH] API Extension: Support for optionally specifying a map of extra request headers when specifying the uri of media data to be played. related-to-bug: 2393577 Original change by Andrei Popescu --- camera/libcameraservice/CameraService.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/camera/libcameraservice/CameraService.cpp b/camera/libcameraservice/CameraService.cpp index 81d60dc5d..405d4715a 100644 --- a/camera/libcameraservice/CameraService.cpp +++ b/camera/libcameraservice/CameraService.cpp @@ -197,7 +197,7 @@ void CameraService::decUsers() { static sp newMediaPlayer(const char *file) { sp mp = new MediaPlayer(); - if (mp->setDataSource(file) == NO_ERROR) { + if (mp->setDataSource(file, NULL /* headers */) == NO_ERROR) { mp->setAudioStreamType(AudioSystem::ENFORCED_AUDIBLE); mp->prepare(); } else {