From 3f27436a9346f043f52265da1e6a74cde2bffd4d Mon Sep 17 00:00:00 2001 From: Lajos Molnar Date: Thu, 5 Mar 2015 14:35:41 -0800 Subject: stagefright: don't use ALooperRoster mutex for reply handling Change replyID-s from uint32_t to an object Move reply handling into the loopers (to reuse a common mutex) Bug: 19607784 Change-Id: Iaa035b846c424c5687ed17ce1079b325e86c54be --- cmds/stagefright/SimplePlayer.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'cmds') diff --git a/cmds/stagefright/SimplePlayer.cpp b/cmds/stagefright/SimplePlayer.cpp index 40762e5..ac1a547 100644 --- a/cmds/stagefright/SimplePlayer.cpp +++ b/cmds/stagefright/SimplePlayer.cpp @@ -116,7 +116,7 @@ void SimplePlayer::onMessageReceived(const sp &msg) { mState = UNPREPARED; } - uint32_t replyID; + sp replyID; CHECK(msg->senderAwaitsResponse(&replyID)); sp response = new AMessage; @@ -139,7 +139,7 @@ void SimplePlayer::onMessageReceived(const sp &msg) { err = OK; } - uint32_t replyID; + sp replyID; CHECK(msg->senderAwaitsResponse(&replyID)); sp response = new AMessage; @@ -161,7 +161,7 @@ void SimplePlayer::onMessageReceived(const sp &msg) { } } - uint32_t replyID; + sp replyID; CHECK(msg->senderAwaitsResponse(&replyID)); sp response = new AMessage; @@ -194,7 +194,7 @@ void SimplePlayer::onMessageReceived(const sp &msg) { } } - uint32_t replyID; + sp replyID; CHECK(msg->senderAwaitsResponse(&replyID)); sp response = new AMessage; @@ -217,7 +217,7 @@ void SimplePlayer::onMessageReceived(const sp &msg) { } } - uint32_t replyID; + sp replyID; CHECK(msg->senderAwaitsResponse(&replyID)); sp response = new AMessage; @@ -240,7 +240,7 @@ void SimplePlayer::onMessageReceived(const sp &msg) { mState = UNINITIALIZED; } - uint32_t replyID; + sp replyID; CHECK(msg->senderAwaitsResponse(&replyID)); sp response = new AMessage; -- cgit v1.1