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

Commit 751c9dc2 authored by Ayushi Khopkar's avatar Ayushi Khopkar
Browse files

libstagefright_mpeg2extractor: Add host support

Also a macro to disable 'isOffloadSupported' is
defined as AudioSystem cannot be built for host.

Test: Build libstagefright_mpeg2extractor on host
Bug: 151789773

Change-Id: Iaa3f64f7be7b0c54e9bd5160a56f4ca00b7050ed
parent 102c7726
Loading
Loading
Loading
Loading
+12 −0
Original line number Diff line number Diff line
@@ -159,6 +159,18 @@ cc_library_static {
            "signed-integer-overflow",
        ],
    },

    host_supported: true,
    target: {
        darwin: {
            enabled: false,
        },
        linux: {
            cflags: [
                "-DDISABLE_AUDIO_SYSTEM_OFFLOAD",
            ],
        }
    },
}

cc_library {
+4 −0
Original line number Diff line number Diff line
@@ -2075,7 +2075,11 @@ bool canOffloadStream(const sp<MetaData>& meta, bool hasVideo,
    }
    // Check if offload is possible for given format, stream type, sample rate,
    // bit rate, duration, video and streaming
#ifdef DISABLE_AUDIO_SYSTEM_OFFLOAD
    return false;
#else
    return AudioSystem::isOffloadSupported(info);
#endif
}

HLSTime::HLSTime(const sp<AMessage>& meta) :