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

Commit 00b4040a authored by TreeHugger Robot's avatar TreeHugger Robot Committed by Automerger Merge Worker
Browse files

Merge "CCodec: Push blank buffer at the end of protected content" into tm-qpr-dev am: bb1760af

parents c4b3cde9 bb1760af
Loading
Loading
Loading
Loading
+10 −0
Original line number Diff line number Diff line
@@ -877,6 +877,16 @@ void CCodec::configure(const sp<AMessage> &msg) {
                    if (msg->findInt32(KEY_PUSH_BLANK_BUFFERS_ON_STOP, &pushBlankBuffersOnStop)) {
                        config->mPushBlankBuffersOnStop = pushBlankBuffersOnStop == 1;
                    }
                    // secure compoment or protected content default with
                    // "push-blank-buffers-on-shutdown" flag
                    if (!config->mPushBlankBuffersOnStop) {
                        int32_t usageProtected;
                        if (comp->getName().find(".secure") != std::string::npos) {
                            config->mPushBlankBuffersOnStop = true;
                        } else if (msg->findInt32("protected", &usageProtected) && usageProtected) {
                            config->mPushBlankBuffersOnStop = true;
                        }
                    }
                }
            }
            setSurface(surface);