Require INTERNET permission for network-based content.
Bug #1870981 Change-Id: Ia3ad166390c4d60cea19c3783895b078a2c4c15f
This commit is contained in:
@ -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();
|
||||
|
||||
|
Reference in New Issue
Block a user