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

Commit ecb4969f authored by Chih-Hung Hsieh's avatar Chih-Hung Hsieh Committed by Chih-hung Hsieh
Browse files

Suppress implicit-fallthrough warnings in mpeg2.

Add FALLTHROUGH_INTENDED for clang compiler.

Bug: 112564944
Test: build with global -Wimplicit-fallthrough.
Change-Id: Ibf9aa0c2bf6ca13dbe96662061cb26b66e9e10d6
parent 48f69816
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -25,6 +25,10 @@ cc_library_shared {
        "libstagefright_foundation",
    ],

    header_libs: [
        "libbase_headers",
    ],

    static_libs: [
        "libstagefright_mpeg2support",
        "libutils",
+3 −1
Original line number Diff line number Diff line
@@ -20,6 +20,8 @@
#include <inttypes.h>
#include <utils/Log.h>

#include <android-base/macros.h>

#include "MPEG2TSExtractor.h"

#include <media/DataSourceBase.h>
@@ -508,7 +510,7 @@ status_t MPEG2TSExtractor::seek(int64_t seekTimeUs,
        case MediaTrack::ReadOptions::SEEK_CLOSEST:
            ALOGW("seekMode not supported: %d; falling back to PREVIOUS_SYNC",
                    seekMode);
            // fall-through
            FALLTHROUGH_INTENDED;
        case MediaTrack::ReadOptions::SEEK_PREVIOUS_SYNC:
            if (index == 0) {
                ALOGW("Previous sync not found; starting from the earliest "