summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/NuCachedSource2.cpp
diff options
context:
space:
mode:
authorAndreas Huber <andih@google.com>2011-01-19 15:07:19 -0800
committerAndreas Huber <andih@google.com>2011-01-19 15:07:19 -0800
commitac05c317cd818701535c5d72ce90da98c4bae75b (patch)
tree7bc60e7bca5d17cad542d96782ad828a0df0c258 /media/libstagefright/NuCachedSource2.cpp
parent88b7ad413c4b6d08697069b18488641d6ce31fd3 (diff)
downloadframeworks_av-ac05c317cd818701535c5d72ce90da98c4bae75b.zip
frameworks_av-ac05c317cd818701535c5d72ce90da98c4bae75b.tar.gz
frameworks_av-ac05c317cd818701535c5d72ce90da98c4bae75b.tar.bz2
Prefill the cache before trying to instantiate the media extractor.
The latter is an operation that otherwise could block on the datasource for a significant amount of time. During that time we'd be unable to abort the preparation phase without this prefill. Change-Id: Ia42496d88a11314386ea8797d665bf4e94871e30 related-to-bug: 3362836
Diffstat (limited to 'media/libstagefright/NuCachedSource2.cpp')
-rw-r--r--media/libstagefright/NuCachedSource2.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/media/libstagefright/NuCachedSource2.cpp b/media/libstagefright/NuCachedSource2.cpp
index 20f1655..741aa1c 100644
--- a/media/libstagefright/NuCachedSource2.cpp
+++ b/media/libstagefright/NuCachedSource2.cpp
@@ -14,6 +14,7 @@
* limitations under the License.
*/
+//#define LOG_NDEBUG 0
#define LOG_TAG "NuCachedSource2"
#include <utils/Log.h>
@@ -487,4 +488,5 @@ void NuCachedSource2::getDrmInfo(DecryptHandle **handle, DrmManagerClient **clie
String8 NuCachedSource2::getUri() {
return mSource->getUri();
}
+
} // namespace android