diff options
author | Dongwon Kang <dwkang@google.com> | 2019-10-23 09:45:09 -0700 |
---|---|---|
committer | android-build-merger <android-build-merger@google.com> | 2019-10-23 09:45:09 -0700 |
commit | 8701769e72d9b733c24dbfb102534ef85e4f6994 (patch) | |
tree | b0389e33dcdd2297db76e6a1742dfc244d22ee1a | |
parent | 0dd1d7c46f12093399f210383001aa788647ffde (diff) | |
parent | 03a78366e84291f35c76533d0606afd1bfd7fb5a (diff) | |
download | platform_hardware_google_av-8701769e72d9b733c24dbfb102534ef85e4f6994.tar.gz platform_hardware_google_av-8701769e72d9b733c24dbfb102534ef85e4f6994.tar.bz2 platform_hardware_google_av-8701769e72d9b733c24dbfb102534ef85e4f6994.zip |
Make DataSourceFactory singleton
am: 03a78366e8
Change-Id: I263d5e27eae2fd54359f3e15cb1d1af6f44b03bb
-rw-r--r-- | media/codecs/cmds/codec2.cpp | 2 |
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"); |