diff options
author | Jan Bjernler <jan2.bjernler@sonymobile.com> | 2012-11-16 16:40:42 +0100 |
---|---|---|
committer | Zoran Jovanovic <zoran.jovanovic@sonymobile.com> | 2012-11-16 16:41:16 +0100 |
commit | 03163f4ed4e130c5df454e3ab2a5bb3690c26be1 (patch) | |
tree | 4c37fcdb7d1928c14c9bbffe0b9313dbd9a7fc07 /media/libstagefright/StagefrightMediaScanner.cpp | |
parent | 33cf49b168a88a88167c46b01787a57b49cd875f (diff) | |
download | frameworks_av-03163f4ed4e130c5df454e3ab2a5bb3690c26be1.zip frameworks_av-03163f4ed4e130c5df454e3ab2a5bb3690c26be1.tar.gz frameworks_av-03163f4ed4e130c5df454e3ab2a5bb3690c26be1.tar.bz2 |
Add .mpga to acceptable file name extensions list.
The *.mpga files are playable, but are not correctly scanned.
This is because they are prevented from being scanned in
StagefrightMediaScanner.cpp.
What this fix does is to add the extension to the list of valid
file extensions so that the scanner handles the filetype properly.
We have previously added the .mpga extension to the framework to
make it playable, but not added it so that the scanner scans it.
Change-Id: I02a44d770adb80d38e8bed77d0d76efa1b28a861
Diffstat (limited to 'media/libstagefright/StagefrightMediaScanner.cpp')
-rw-r--r-- | media/libstagefright/StagefrightMediaScanner.cpp | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/StagefrightMediaScanner.cpp b/media/libstagefright/StagefrightMediaScanner.cpp index b7cf96e..bccffd8 100644 --- a/media/libstagefright/StagefrightMediaScanner.cpp +++ b/media/libstagefright/StagefrightMediaScanner.cpp @@ -42,7 +42,7 @@ static bool FileHasAcceptableExtension(const char *extension) { ".mpeg", ".ogg", ".mid", ".smf", ".imy", ".wma", ".aac", ".wav", ".amr", ".midi", ".xmf", ".rtttl", ".rtx", ".ota", ".mkv", ".mka", ".webm", ".ts", ".fl", ".flac", ".mxmf", - ".avi", ".mpeg", ".mpg" + ".avi", ".mpeg", ".mpg", ".mpga" }; static const size_t kNumValidExtensions = sizeof(kValidExtensions) / sizeof(kValidExtensions[0]); |