summaryrefslogtreecommitdiffstats
path: root/media/libstagefright/StagefrightMediaScanner.cpp
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
commit19af4c7966bda963f5d9143bd60f58a9e171cf0a (patch)
treeba3ae758aaddaf8de92168c23e98d13d75a5344e /media/libstagefright/StagefrightMediaScanner.cpp
parentf0e3acd06af00c07bfb541090b5349618fa67507 (diff)
downloadframeworks_av-19af4c7966bda963f5d9143bd60f58a9e171cf0a.zip
frameworks_av-19af4c7966bda963f5d9143bd60f58a9e171cf0a.tar.gz
frameworks_av-19af4c7966bda963f5d9143bd60f58a9e171cf0a.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.cpp2
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]);