diff --git a/packager/packager.cc b/packager/packager.cc index e7618632cb..bc22e22518 100644 --- a/packager/packager.cc +++ b/packager/packager.cc @@ -645,9 +645,9 @@ Status CreateAudioVideoJobs( if (!is_text) { handlers.emplace_back(std::make_shared( packaging_params.chunking_params)); + handlers.emplace_back(CreateEncryptionHandler(packaging_params, stream, + encryption_key_source)); } - handlers.emplace_back(CreateEncryptionHandler(packaging_params, stream, - encryption_key_source)); replicator = std::make_shared(); handlers.emplace_back(replicator);