diff options
author | Andreas Huber <andih@google.com> | 2010-01-28 11:19:57 -0800 |
---|---|---|
committer | Andreas Huber <andih@google.com> | 2010-01-28 11:52:43 -0800 |
commit | d4461e766438fc714a145213ed565fb6b6886c62 (patch) | |
tree | 96a2309fb0567d04db4efa8e7020b0377cb28da1 /camera/libcameraservice | |
parent | 16944ca85855591464755f073e2763c009f66ff7 (diff) | |
download | frameworks_native-d4461e766438fc714a145213ed565fb6b6886c62.zip frameworks_native-d4461e766438fc714a145213ed565fb6b6886c62.tar.gz frameworks_native-d4461e766438fc714a145213ed565fb6b6886c62.tar.bz2 |
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 <andreip@google.com>
Diffstat (limited to 'camera/libcameraservice')
-rw-r--r-- | camera/libcameraservice/CameraService.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/camera/libcameraservice/CameraService.cpp b/camera/libcameraservice/CameraService.cpp index 81d60dc..405d471 100644 --- a/camera/libcameraservice/CameraService.cpp +++ b/camera/libcameraservice/CameraService.cpp @@ -197,7 +197,7 @@ void CameraService::decUsers() { static sp<MediaPlayer> newMediaPlayer(const char *file) { sp<MediaPlayer> 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 { |