summaryrefslogtreecommitdiffstats
path: root/cmds
diff options
context:
space:
mode:
authorGlenn Kasten <gkasten@google.com>2014-01-16 17:44:23 -0800
committerGlenn Kasten <gkasten@google.com>2014-03-25 16:22:54 -0700
commit66e4635cb09fadcaccf912f37c387396c428378a (patch)
tree7982a54dbc04375babd42e59c03ef930454a9687 /cmds
parent1392eb3d1802e9f894f87d7a7387207d1b6faca1 (diff)
downloadframeworks_av-66e4635cb09fadcaccf912f37c387396c428378a.zip
frameworks_av-66e4635cb09fadcaccf912f37c387396c428378a.tar.gz
frameworks_av-66e4635cb09fadcaccf912f37c387396c428378a.tar.bz2
Use symbolic constants from <system/audio.h>
AUDIO_INTERLEAVE_* AUDIO_STREAM_MIN AUDIO_SESSION_ALLOCATE Change-Id: I31dd6f327204685e50716079ce21c4ba206dff11
Diffstat (limited to 'cmds')
-rw-r--r--cmds/stagefright/stream.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/cmds/stagefright/stream.cpp b/cmds/stagefright/stream.cpp
index b2abc0f..0566d14 100644
--- a/cmds/stagefright/stream.cpp
+++ b/cmds/stagefright/stream.cpp
@@ -374,7 +374,7 @@ int main(int argc, char **argv) {
}
sp<IMediaPlayer> player =
- service->create(client, 0);
+ service->create(client, AUDIO_SESSION_ALLOCATE);
if (player != NULL && player->setDataSource(source) == NO_ERROR) {
player->setVideoSurfaceTexture(surface->getIGraphicBufferProducer());