Merge "Audio primary hal: fix member function used before init" into oc-dev am: 30f78a13b0
am: 6e11dc4ba6
Change-Id: I6a13f2451adf78e2a517bed7beae608734b946f1
diff --git a/audio/2.0/default/StreamIn.cpp b/audio/2.0/default/StreamIn.cpp
index 0798bbe..e5a1a55 100644
--- a/audio/2.0/default/StreamIn.cpp
+++ b/audio/2.0/default/StreamIn.cpp
@@ -354,7 +354,7 @@
CommandMQ::Descriptor(), DataMQ::Descriptor(), StatusMQ::Descriptor(), threadInfo);
return Void();
}
- status = mReadThread->run("reader", PRIORITY_URGENT_AUDIO);
+ status = tempReadThread->run("reader", PRIORITY_URGENT_AUDIO);
if (status != OK) {
ALOGW("failed to start reader thread: %s", strerror(-status));
_hidl_cb(Result::INVALID_ARGUMENTS,