summaryrefslogtreecommitdiffstats
path: root/media/libavextensions/stagefright/AVFactory.cpp
diff options
context:
space:
mode:
authorApurupa Pattapu <apurupa@codeaurora.org>2015-08-06 13:06:07 -0700
committerLinux Build Service Account <lnxbuild@localhost>2015-10-06 03:24:38 -0600
commit363794122a6482830ec5925d13b34c5d05c0726f (patch)
tree965a51790e1e6da4055911e46bb3f4ecd41103c3 /media/libavextensions/stagefright/AVFactory.cpp
parentfc78c2cb9d133c3b53d0898b5b746ad408f1234a (diff)
downloadframeworks_av-363794122a6482830ec5925d13b34c5d05c0726f.zip
frameworks_av-363794122a6482830ec5925d13b34c5d05c0726f.tar.gz
frameworks_av-363794122a6482830ec5925d13b34c5d05c0726f.tar.bz2
libstagefright: Update extractor for specific formats
- New API updateExtractor is used to either keep default extractor or use extended extractor based on media track's mime types. CRs-Fixed: 884793 Change-Id: I63dcc4b2d3901dbc3287eb43a1f4ce2767897258
Diffstat (limited to 'media/libavextensions/stagefright/AVFactory.cpp')
-rw-r--r--media/libavextensions/stagefright/AVFactory.cpp8
1 files changed, 7 insertions, 1 deletions
diff --git a/media/libavextensions/stagefright/AVFactory.cpp b/media/libavextensions/stagefright/AVFactory.cpp
index 22969a2..671c858 100644
--- a/media/libavextensions/stagefright/AVFactory.cpp
+++ b/media/libavextensions/stagefright/AVFactory.cpp
@@ -53,10 +53,16 @@ sp<ACodec> AVFactory::createACodec() {
}
MediaExtractor* AVFactory::createExtendedExtractor(
- const sp<DataSource> &, const char *) {
+ const sp<DataSource> &, const char *, sp<AMessage> *) {
return NULL;
}
+sp<MediaExtractor> AVFactory::updateExtractor(
+ sp<MediaExtractor> ext, const sp<DataSource> &,
+ const char *, sp<AMessage> *) {
+ return ext;
+}
+
sp<NuCachedSource2> AVFactory::createCachedSource(
const sp<DataSource> &source,
const char *cacheConfig,