summaryrefslogtreecommitdiffstats
path: root/media/mediaserver/main_mediaserver.cpp
diff options
context:
space:
mode:
authorNarayan Kamath <narayan@google.com>2015-06-09 17:42:34 +0100
committerNarayan Kamath <narayan@google.com>2015-06-10 08:52:17 +0000
commit2f3406517d1fd4486b8b90eb2635d784fad17a48 (patch)
tree55ff130219cf9ac6b68ebf58b0aa848159852b90 /media/mediaserver/main_mediaserver.cpp
parent356f08476db6191cdcbad20caf69d7bd642a09b2 (diff)
downloadframeworks_av-2f3406517d1fd4486b8b90eb2635d784fad17a48.zip
frameworks_av-2f3406517d1fd4486b8b90eb2635d784fad17a48.tar.gz
frameworks_av-2f3406517d1fd4486b8b90eb2635d784fad17a48.tar.bz2
mediaserver : Initialize ICU on startup.
In change 2b29e461c in external/icu, we stopped hardcoding the ICU data path at compile time to avoid two sets of mappings in zygote forked processes. This means we'll have to tell ICU where its data is if the process in question isn't forked from the zygote. bug: 21705078 Change-Id: I829d9fa34fe8209aa8a6d55145ca26fdf0d934e8
Diffstat (limited to 'media/mediaserver/main_mediaserver.cpp')
-rw-r--r--media/mediaserver/main_mediaserver.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/mediaserver/main_mediaserver.cpp b/media/mediaserver/main_mediaserver.cpp
index 06b3c6e..27a40b2 100644
--- a/media/mediaserver/main_mediaserver.cpp
+++ b/media/mediaserver/main_mediaserver.cpp
@@ -31,6 +31,7 @@
// from LOCAL_C_INCLUDES
#include "AudioFlinger.h"
#include "CameraService.h"
+#include "IcuUtils.h"
#include "MediaLogService.h"
#include "MediaPlayerService.h"
#include "ResourceManagerService.h"
@@ -124,6 +125,7 @@ int main(int argc __unused, char** argv)
prctl(PR_SET_PDEATHSIG, SIGKILL); // if parent media.log dies before me, kill me also
setpgid(0, 0); // but if I die first, don't kill my parent
}
+ initializeIcuOrDie();
sp<ProcessState> proc(ProcessState::self());
sp<IServiceManager> sm = defaultServiceManager();
ALOGI("ServiceManager: %p", sm.get());