Do not create encryption handler for text streams

The text stream should not be encrypted.

Fixes #883.
This commit is contained in:
Vishal Shah 2021-01-19 12:57:24 -07:00 committed by GitHub
parent 8e3e8d3e8e
commit 427d264b46
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 2 additions and 2 deletions

View File

@ -645,9 +645,9 @@ Status CreateAudioVideoJobs(
if (!is_text) { if (!is_text) {
handlers.emplace_back(std::make_shared<ChunkingHandler>( handlers.emplace_back(std::make_shared<ChunkingHandler>(
packaging_params.chunking_params)); 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<Replicator>(); replicator = std::make_shared<Replicator>();
handlers.emplace_back(replicator); handlers.emplace_back(replicator);