Loading media/codec2/sfplugin/CCodec.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -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); Loading Loading
media/codec2/sfplugin/CCodec.cpp +10 −0 Original line number Diff line number Diff line Loading @@ -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); Loading