summaryrefslogtreecommitdiffstats
path: root/cmds/bootanimation/BootAnimation.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'cmds/bootanimation/BootAnimation.cpp')
-rw-r--r--cmds/bootanimation/BootAnimation.cpp10
1 files changed, 6 insertions, 4 deletions
diff --git a/cmds/bootanimation/BootAnimation.cpp b/cmds/bootanimation/BootAnimation.cpp
index b153454..b83c7ab 100644
--- a/cmds/bootanimation/BootAnimation.cpp
+++ b/cmds/bootanimation/BootAnimation.cpp
@@ -736,10 +736,6 @@ bool BootAnimation::movie()
pthread_mutex_init(&mp_lock, NULL);
pthread_cond_init(&mp_cond, NULL);
- property_get("persist.sys.silent", value, "null");
- if (strncmp(value, "1", 1) != 0) {
- playBackgroundMusic();
- }
for (size_t i=0 ; i<pcount ; i++) {
const Animation::Part& part(animation.parts[i]);
const size_t fcount = part.frames.size();
@@ -862,6 +858,12 @@ bool BootAnimation::movie()
}
+ property_get("persist.sys.silent", value, "null");
+ if (strncmp(value, "1", 1) != 0) {
+ ALOGD("playing boot audio here");
+ playBackgroundMusic();
+ }
+
if (isMPlayerPrepared) {
ALOGD("waiting for media player to complete.");
struct timespec timeout;