Require INTERNET permission for network-based content.

Bug #1870981

Change-Id: Ia3ad166390c4d60cea19c3783895b078a2c4c15f
This commit is contained in:
Dave Burke
2011-08-30 14:39:17 +01:00
parent 117999d1f4
commit fc301b0bb5
12 changed files with 156 additions and 191 deletions

View File

@ -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();