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

Commit 056731d2 authored by Danny Baumann's avatar Danny Baumann Committed by Abhisek Devkota
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.

RM-290
Change-Id: I0617a6d93fe793cdef06ffd4e334001e5f9b054e
(cherry picked from commit 8d41a10e)
parent aa989686
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -46,7 +46,7 @@ static bool FileHasAcceptableExtension(const char *extension) {
        ".mov", ".ra", ".rm", ".rmvb", ".ac3", ".ape", ".dts",
        ".mp1", ".mp2", ".f4v", "hlv", "nrg", "m2v", ".swf",
        ".avi", ".mpg", ".mpeg", ".awb", ".vc1", ".vob", ".divx",
        ".mpga", ".mov", ".qcp", ".ec3"
        ".mpga", ".mov", ".qcp", ".ec3", ".opus"
    };
    static const size_t kNumValidExtensions =
        sizeof(kValidExtensions) / sizeof(kValidExtensions[0]);