summaryrefslogtreecommitdiffstats
path: root/media
diff options
context:
space:
mode:
authorKrishnankutty Kolathappilly <kkolat@codeaurora.org>2013-03-14 09:58:39 -0700
committerGiulio Cervera <giulio.cervera@cyanogenmod.org>2013-05-22 16:02:24 +0200
commitae57fbc021cfc8b018cfb23b90112b1b17173d1b (patch)
tree004d8ab052ca564b4b7906f47091ded74e5f2cf3 /media
parent6915a0521897f42f3a37379af3cb513f6dcc57cb (diff)
downloadframeworks_av-ae57fbc021cfc8b018cfb23b90112b1b17173d1b.zip
frameworks_av-ae57fbc021cfc8b018cfb23b90112b1b17173d1b.tar.gz
frameworks_av-ae57fbc021cfc8b018cfb23b90112b1b17173d1b.tar.bz2
frameworks/av: Add metadata mode changes to LPAPlayer
-Seek to EOS was causing playback to hang for 3 seconds before switching to the next clip. -This is because the lpa driver works on period size. Partial buffers are not handled. -Add support for metadata mode changes to LPAPlayer to support partial frames. CRs-Fixed: 458904 Change-Id: I8673756b54ae7bca18855d326c85ae1064652514
Diffstat (limited to 'media')
-rw-r--r--media/libstagefright/LPAPlayerALSA.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/media/libstagefright/LPAPlayerALSA.cpp b/media/libstagefright/LPAPlayerALSA.cpp
index 0aa419c..e2f30ed 100644
--- a/media/libstagefright/LPAPlayerALSA.cpp
+++ b/media/libstagefright/LPAPlayerALSA.cpp
@@ -51,10 +51,9 @@
static const char mName[] = "LPAPlayer";
-#define MEM_PADDING 64
-#define MEM_BUFFER_SIZE (256*1024)
+#define MEM_METADATA_SIZE 64
+#define MEM_BUFFER_SIZE ((256*1024) - MEM_METADATA_SIZE)
#define MEM_BUFFER_COUNT 4
-
#define PCM_FORMAT 2
#define NUM_FDS 2
#define LPA_BUFFER_TIME 1500000