From 427d264b46cdc7c0ba3f1682b2e7ba6c69a78a25 Mon Sep 17 00:00:00 2001 From: Vishal Shah Date: Tue, 19 Jan 2021 12:57:24 -0700 Subject: [PATCH] Do not create encryption handler for text streams The text stream should not be encrypted. Fixes #883. --- packager/packager.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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);