OSDN Git Service

Allow a system property "media.stagefright.cache-params" to override cache/prefetcher
authorAndreas Huber <andih@google.com>
Wed, 5 Oct 2011 21:32:17 +0000 (14:32 -0700)
committerAndreas Huber <andih@google.com>
Thu, 6 Oct 2011 22:27:24 +0000 (15:27 -0700)
commita045cb0e77097120e86e367e1cab5494ce2a5d5e
treeaa59a2e83f38bf06507b0c81af311f2f096287ec
parentd20bf0676d6db8f12edcd2307f82409c076c7015
Allow a system property "media.stagefright.cache-params" to override cache/prefetcher

default parameters. To override specify a property

adb shell setprop media.stagefright.cache-params "4096/20480/15" to
set the low water threshold to 4096 KB, the high water threshold to 20 MB
and the keepalive interval to 15 secs.

if high and/or lowwater mark are negative, the default values are used for
the respective value.

if keep-alive interval is 0, keep-alives are disabled.

Change-Id: I89a4a06836e4a2f473d7a92b567ab07818c2f87d
media/libstagefright/NuCachedSource2.cpp
media/libstagefright/include/NuCachedSource2.h