Revert "fm: fix openRecord prototype"
This reverts commit 89ad23a2d0ebc317e62ffb87e048469b1df3d69e.
Change-Id: Ided3ea4b0d9b88d604cff18c0fa7ed2a8e2c072e
diff --git a/media/libstagefright/FMRadioSource.cpp b/media/libstagefright/FMRadioSource.cpp
index 8774518..c657e0c 100644
--- a/media/libstagefright/FMRadioSource.cpp
+++ b/media/libstagefright/FMRadioSource.cpp
@@ -127,15 +127,13 @@
return NO_INIT;
}
- pid_t tid = gettid(); // or -1;
-
- sp<IAudioRecord> record = audioFlinger->openRecord(input,
+ sp<IAudioRecord> record = audioFlinger->openRecord(getpid(), input,
kSampleRate,
kAudioFormat,
kChannelMask,
frameCount,
IAudioFlinger::TRACK_DEFAULT,
- tid,
+ gettid(),
&mSessionId,
&status);