summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDongwon Kang <dwkang@google.com>2019-10-16 14:34:18 -0700
committerDongwon Kang <dwkang@google.com>2019-10-23 16:28:10 +0000
commit03a78366e84291f35c76533d0606afd1bfd7fb5a (patch)
tree04bf63beab821f6e61c05945fcbc267c0d0e1de5
parent0cac065de35bd102b5826fbebb4195b8db67e8b2 (diff)
downloadav-03a78366e84291f35c76533d0606afd1bfd7fb5a.tar.gz
Make DataSourceFactory singleton
This is preparation for having a subclass of DataSourceFactory which is only used in mediaserver process with OMA (forward-lock) use case. Test: build Bug: 142567168 Change-Id: If4b7cb513b4759f2974b644ad4141e28eb34745e
-rw-r--r--media/codecs/cmds/codec2.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/codecs/cmds/codec2.cpp b/media/codecs/cmds/codec2.cpp
index 11c9f41..da59810 100644
--- a/media/codecs/cmds/codec2.cpp
+++ b/media/codecs/cmds/codec2.cpp
@@ -417,7 +417,7 @@ int main(int argc, char **argv) {
const char *filename = argv[k];
sp<DataSource> dataSource =
- DataSourceFactory::CreateFromURI(nullptr /* httpService */, filename);
+ DataSourceFactory::getInstance()->CreateFromURI(nullptr /* httpService */, filename);
if (strncasecmp(filename, "sine:", 5) && dataSource == nullptr) {
fprintf(stderr, "Unable to create data source.\n");