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

Commit 6169766b authored by Wonsik Kim's avatar Wonsik Kim Committed by Gerrit Code Review
Browse files

Merge "CCodec: Updates to RevertOutputFormatIfNeeded"

parents a2860476 8c53750e
Loading
Loading
Loading
Loading
+5 −0
Original line number Diff line number Diff line
@@ -492,7 +492,10 @@ void RevertOutputFormatIfNeeded(
    // We used to not report changes to these keys to the client.
    const static std::set<std::string> sIgnoredKeys({
            KEY_BIT_RATE,
            KEY_FRAME_RATE,
            KEY_MAX_BIT_RATE,
            KEY_MAX_WIDTH,
            KEY_MAX_HEIGHT,
            "csd-0",
            "csd-1",
            "csd-2",
@@ -1706,7 +1709,9 @@ void CCodec::signalResume() {
    {
        Mutexed<std::unique_ptr<Config>>::Locked configLocked(mConfig);
        const std::unique_ptr<Config> &config = *configLocked;
        sp<AMessage> outputFormat = config->mOutputFormat;
        config->queryConfiguration(comp);
        RevertOutputFormatIfNeeded(outputFormat, config->mOutputFormat);
    }

    (void)mChannel->start(nullptr, nullptr, [&]{