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

Commit e97bf78c authored by Android Build Coastguard Worker's avatar Android Build Coastguard Worker
Browse files

Snap for 9720638 from bb1760af to tm-qpr3-release

Change-Id: Ic0b2fca985374d7939ac94a3cd174cb9317e490d
parents f2842a33 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);