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

Commit e22f0ebe authored by Treehugger Robot's avatar Treehugger Robot Committed by Gerrit Code Review
Browse files

Merge "Suppress implicit-fallthrough warnings in mpeg2."

parents 48f69816 ecb4969f
Loading
Loading
Loading
Loading
+4 −0
Original line number Original line Diff line number Diff line
@@ -25,6 +25,10 @@ cc_library_shared {
        "libstagefright_foundation",
        "libstagefright_foundation",
    ],
    ],


    header_libs: [
        "libbase_headers",
    ],

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


#include <android-base/macros.h>

#include "MPEG2TSExtractor.h"
#include "MPEG2TSExtractor.h"


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