Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 369af7d8 authored by Dongwon Kang's avatar Dongwon Kang
Browse files

MediaExtractorFactory: skip the entry starting with '.'

Test: build and boot
Bug: 116597253
Change-Id: Ifb135b45a4242ae18e108b356ef996067a66360b
parent 5ceb8c8c
Loading
Loading
Loading
Loading
+3 −0
Original line number Diff line number Diff line
@@ -271,6 +271,9 @@ void MediaExtractorFactory::RegisterExtractorsInSystem(
    if (libDir) {
        struct dirent* libEntry;
        while ((libEntry = readdir(libDir))) {
            if (libEntry->d_name[0] == '.') {
                continue;
            }
            String8 libPath = String8(libDirPath) + "/" + libEntry->d_name;
            void *libHandle = dlopen(libPath.string(), RTLD_NOW | RTLD_LOCAL);
            if (libHandle) {