Skip to content

Commit

Permalink
Do not create encryption handler for text streams
Browse files Browse the repository at this point in the history
The text stream should not be encrypted.

Fixes shaka-project#883.
  • Loading branch information
vish91 authored Jan 19, 2021
1 parent 8e3e8d3 commit 427d264
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packager/packager.cc
Original file line number Diff line number Diff line change
Expand Up @@ -645,9 +645,9 @@ Status CreateAudioVideoJobs(
if (!is_text) {
handlers.emplace_back(std::make_shared<ChunkingHandler>(
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>();
handlers.emplace_back(replicator);
Expand Down

0 comments on commit 427d264

Please sign in to comment.