File tree Expand file tree Collapse file tree 1 file changed +10
-8
lines changed
Expand file tree Collapse file tree 1 file changed +10
-8
lines changed Original file line number Diff line number Diff line change @@ -172,14 +172,16 @@ status_t StagefrightMediaScanner::processFile(
172172 || !strcasecmp (extension, " .rtttl" )
173173 || !strcasecmp (extension, " .rtx" )
174174 || !strcasecmp (extension, " .ota" )) {
175- return HandleMIDI (path, &client);
176- }
177-
178- if (!strcasecmp (extension, " .ogg" )) {
179- return HandleOGG (path, &client);
180- }
181-
182- if (mRetriever ->setDataSource (path) == OK
175+ status_t status = HandleMIDI (path, &client);
176+ if (status != OK) {
177+ return status;
178+ }
179+ } else if (!strcasecmp (extension, " .ogg" )) {
180+ status_t status = HandleOGG (path, &client);
181+ if (status != OK) {
182+ return status;
183+ }
184+ } else if (mRetriever ->setDataSource (path) == OK
183185 && mRetriever ->setMode (
184186 METADATA_MODE_METADATA_RETRIEVAL_ONLY) == OK) {
185187 const char *value;
You can’t perform that action at this time.
0 commit comments