if (!key_system_acquired_) {
key_system_ = eme::IEME::getKeySystemName(drm_info.handle);
LOG_INFO("KeySystemName :: [%s] ", key_system_.c_str());
- if (!state_manager_.GetPreparingState()) { //if the stream comes with clean data at the beginning, re-post kpi when we get key system.
- kpi::CodecLogger logger;
- kpi::EsCodecLoggerKeys event_keys = MakeKpiKeys_();
- logger.SendKpi(true, event_keys);
+ if (!state_manager_
+ .GetPreparingState()) { // if the stream comes with clean data at
- // the begining, re-post kpi when we get
++ // the beginning, re-post kpi when we get
+ // key system.
+ kpi::CodecLogger logger;
+ kpi::EsCodecLoggerKeys event_keys = MakeKpiKeys_();
+ logger.SendKpi(true, event_keys);
}
key_system_acquired_ = true;
}