hwc: qclient: Subscribe to mediaplayer death later.
Subscribing to mediaplayer death on bootup delays
display startup because it depends on mediaplayer startup.
Defer until later.
Change-Id: Id73e90e5cc8581d8e2359d7c7effee1b65de488b
diff --git a/libhwcomposer/hwc_qclient.cpp b/libhwcomposer/hwc_qclient.cpp
index c130208..edf579f 100644
--- a/libhwcomposer/hwc_qclient.cpp
+++ b/libhwcomposer/hwc_qclient.cpp
@@ -42,11 +42,7 @@
QClient::QClient(hwc_context_t *ctx) : mHwcContext(ctx),
mMPDeathNotifier(new MPDeathNotifier(ctx))
{
-
ALOGD_IF(QCLIENT_DEBUG, "QClient Constructor invoked");
- //The only way to make this class in this process subscribe to media
- //player's death.
- IMediaDeathNotifier::getMediaPlayerService();
}
QClient::~QClient()
@@ -72,6 +68,10 @@
}
void QClient::securing(uint32_t startEnd) {
+ //The only way to make this class in this process subscribe to media
+ //player's death.
+ IMediaDeathNotifier::getMediaPlayerService();
+
mHwcContext->mSecuring = startEnd;
//We're done securing
if(startEnd == IQService::END)