summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorDave Burke <daveburke@google.com>2011-08-30 14:39:17 +0100
committerDave Burke <daveburke@google.com>2011-09-02 11:26:59 +0100
commitd681bbb1767bed09415e050ba78975df214bcd68 (patch)
tree2030c617c61bbf7b6cd8c6bafab601a99b1ac83d /cmds
parentd942202ee0c92608c648735c3ad0f1bab4312420 (diff)
downloadframeworks_av-d681bbb1767bed09415e050ba78975df214bcd68.zip
frameworks_av-d681bbb1767bed09415e050ba78975df214bcd68.tar.gz
frameworks_av-d681bbb1767bed09415e050ba78975df214bcd68.tar.bz2
Require INTERNET permission for network-based content.
Bug #1870981 Change-Id: Ia3ad166390c4d60cea19c3783895b078a2c4c15f
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stream.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/stagefright/stream.cpp b/cmds/stagefright/stream.cpp
index aa3bc03..b13236a 100644
--- a/cmds/stagefright/stream.cpp
+++ b/cmds/stagefright/stream.cpp
@@ -357,9 +357,9 @@ int main(int argc, char **argv) {
}
sp<IMediaPlayer> player =
- service->create(getpid(), client, source, 0);
+ service->create(getpid(), client, 0);
- if (player != NULL) {
+ if (player != NULL && player->setDataSource(source) == NO_ERROR) {
player->setVideoSurface(surface);
player->start();