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

Commit b76c3198 authored by Danny Baumann's avatar Danny Baumann Committed by Luca Stefani
Browse files

mediascanner: Accept .opus file extension.

Apparently there are a number of people and/or tools that name their
opus coded audio in ogg containers *.opus. Reflect that fact.

Change-Id: I0617a6d93fe793cdef06ffd4e334001e5f9b054e
parent 0fdfbcc5
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -41,7 +41,7 @@ static bool FileHasAcceptableExtension(const char *extension) {
        ".wav", ".amr", ".midi", ".xmf", ".rtttl", ".rtx", ".ota",
        ".mkv", ".mka", ".webm", ".ts", ".fl", ".flac", ".mxmf",
        ".avi", ".mpeg", ".mpg", ".awb", ".mpga", ".mov",
        ".m4v", ".oga"
        ".m4v", ".oga", ".opus"
    };
    static const size_t kNumValidExtensions =
        sizeof(kValidExtensions) / sizeof(kValidExtensions[0]);