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
commitfc301b0bb5c635c6bb51b48c504a8db5f9010e5c (patch)
tree463dec648e238d2e6821a86d121f2a3f8048b3ff /cmds
parent117999d1f44ec3423369385495ae207898b7b73e (diff)
downloadframeworks_base-fc301b0bb5c635c6bb51b48c504a8db5f9010e5c.zip
frameworks_base-fc301b0bb5c635c6bb51b48c504a8db5f9010e5c.tar.gz
frameworks_base-fc301b0bb5c635c6bb51b48c504a8db5f9010e5c.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();