summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2012-02-03 11:06:53 -0800
committerGlenn Kasten <gkasten@google.com>2012-12-18 16:16:30 -0800
commit8d6cc842e8d525405c68e57fdf3bc5da0b4d7e87 (patch)
treed3296fc4f886ae058cb353cec79576b7e4428897 /cmds
parent53bc0a2fc54330534330118edd5c393f39eff8ab (diff)
downloadframeworks_av-8d6cc842e8d525405c68e57fdf3bc5da0b4d7e87.zip
frameworks_av-8d6cc842e8d525405c68e57fdf3bc5da0b4d7e87.tar.gz
frameworks_av-8d6cc842e8d525405c68e57fdf3bc5da0b4d7e87.tar.bz2
Remove unnecessary parameter
Just get the parameter on server side Change-Id: I433a63104dbb257e0d862be2ab61847cb36d1c15
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stagefright.cpp3
-rw-r--r--cmds/stagefright/stream.cpp2
2 files changed, 2 insertions, 3 deletions
diff --git a/cmds/stagefright/stagefright.cpp b/cmds/stagefright/stagefright.cpp
index 148b66e..ad68a21 100644
--- a/cmds/stagefright/stagefright.cpp
+++ b/cmds/stagefright/stagefright.cpp
@@ -22,7 +22,6 @@
#include <stdlib.h>
#include <string.h>
-#include <unistd.h>
#include "jpeg.h"
#include "SineSource.h"
@@ -821,7 +820,7 @@ int main(int argc, char **argv) {
CHECK(service.get() != NULL);
sp<IMediaMetadataRetriever> retriever =
- service->createMetadataRetriever(getpid());
+ service->createMetadataRetriever();
CHECK(retriever != NULL);
diff --git a/cmds/stagefright/stream.cpp b/cmds/stagefright/stream.cpp
index 7329dcc..af6afe0 100644
--- a/cmds/stagefright/stream.cpp
+++ b/cmds/stagefright/stream.cpp
@@ -370,7 +370,7 @@ int main(int argc, char **argv) {
}
sp<IMediaPlayer> player =
- service->create(getpid(), client, 0);
+ service->create(client, 0);
if (player != NULL && player->setDataSource(source) == NO_ERROR) {
player->setVideoSurfaceTexture(surface->getSurfaceTexture());