From 8f3a45c49719f77a4017ac2a5328e7235d0f26fc Mon Sep 17 00:00:00 2001 From: Aaron Vaage Date: Tue, 15 May 2018 12:43:46 -0700 Subject: [PATCH] Respect Output Format In Packager Test Make sure to use the output format when given when setting up our tests. Not doing so results in text always being set to "vtt" when the output format is "mp4". Change-Id: I11c5f861091598a67fc76dc19b1b16a9a773a2e0 --- packager/app/test/packager_test.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packager/app/test/packager_test.py b/packager/app/test/packager_test.py index 67d70d6131..75a91ed3af 100755 --- a/packager/app/test/packager_test.py +++ b/packager/app/test/packager_test.py @@ -92,11 +92,11 @@ def _UpdateMpdTimes(mpd_filepath): def GetExtension(stream_descriptor, output_format): + if output_format: + return output_format # TODO(rkuroiwa): Support ttml. if stream_descriptor == 'text': return 'vtt' - if output_format: - return output_format # Default to mp4. return 'mp4'