summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJan Bjernler <jan2.bjernler@sonymobile.com>2012-11-16 16:40:42 +0100
committerZoran Jovanovic <zoran.jovanovic@sonymobile.com>2012-11-16 16:41:16 +0100
commit03163f4ed4e130c5df454e3ab2a5bb3690c26be1 (patch)
tree4c37fcdb7d1928c14c9bbffe0b9313dbd9a7fc07
parent33cf49b168a88a88167c46b01787a57b49cd875f (diff)
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
-rw-r--r--media/libstagefright/StagefrightMediaScanner.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/media/libstagefright/StagefrightMediaScanner.cpp b/media/libstagefright/StagefrightMediaScanner.cpp
index b7cf96e1..bccffd85 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]);