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

Commit fc42e16d authored by James Dong's avatar James Dong Committed by Android (Google) Code Review
Browse files

Merge "Fix track selection code in AwesomePlayer" into jb-dev

parents 0a14c4ce 8a15dfba
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -2440,7 +2440,7 @@ status_t AwesomePlayer::selectTrack(size_t trackIndex, bool select) {
        CHECK(meta->findCString(kKeyMIMEType, &mime));
        isAudioTrack = !strncasecmp(mime, "audio/", 6);

        if (!isAudioTrack && !strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP)) {
        if (!isAudioTrack && strcasecmp(mime, MEDIA_MIMETYPE_TEXT_3GPP) != 0) {
            ALOGE("Track %d is not either audio or timed text", trackIndex);
            return ERROR_UNSUPPORTED;
        }