shaka-packager/packager/media/formats/webvtt
Joey Parrish 82bc7a3b95 Fix reading WebVTT from a pipe
Opening a named pipe can block until both ends are open, and we cannot
control when the other end will be open.  Ideally, we would always
open files in a thread so that Packager can be used with piped inputs
from naive applications without a potential deadlock.

This change will defer opening WebVTT files until the parser Run()
method is called from a thread.  This way, WebVTT files being sent in
from a pipe will never be able to block the main thread.

Previously, files were opened on the main thread before calling the
parser constructor, passing the open file to the constructor as an
argument.  I also tried doing it in the parser's InitializeInternal()
method, but that is also called from the main thread.

Change-Id: I54cc68ed9d48a8dc697829119be84d4065b1ae1c
2020-03-28 17:02:41 -07:00
..
text_padder.cc Don't Always Start Text At Time Zero 2018-06-29 23:02:22 +00:00
text_padder.h Don't Always Start Text At Time Zero 2018-06-29 23:02:22 +00:00
text_readers.cc Change CharReader to FileReader 2018-01-04 14:36:52 -08:00
text_readers.h Change CharReader to FileReader 2018-01-04 14:36:52 -08:00
text_readers_unittest.cc Change CharReader to FileReader 2018-01-04 14:36:52 -08:00
webvtt.gyp Rename webvtt_output_handler files 2018-05-25 18:56:54 +00:00
webvtt_file_buffer.cc Adding Missing "// namespace" 2018-08-27 17:19:31 +00:00
webvtt_file_buffer.h Support STYLE and REGION in WebVTT 2018-08-20 14:12:07 -07:00
webvtt_parser.cc Fix reading WebVTT from a pipe 2020-03-28 17:02:41 -07:00
webvtt_parser.h Fix reading WebVTT from a pipe 2020-03-28 17:02:41 -07:00
webvtt_parser_unittest.cc Fix reading WebVTT from a pipe 2020-03-28 17:02:41 -07:00
webvtt_text_output_handler.cc Support STYLE and REGION in WebVTT 2018-08-20 14:12:07 -07:00
webvtt_text_output_handler.h Support STYLE and REGION in WebVTT 2018-08-20 14:12:07 -07:00
webvtt_text_output_handler_unittest.cc Make Test Util 'GetTextStreamInfo' require Time Scale 2018-06-13 17:43:35 +00:00
webvtt_timestamp.cc Implement MsToWebVTTTimestamp 2017-08-30 18:30:43 +00:00
webvtt_timestamp.h Implement MsToWebVTTTimestamp 2017-08-30 18:30:43 +00:00
webvtt_timestamp_unittest.cc Implement MsToWebVTTTimestamp 2017-08-30 18:30:43 +00:00
webvtt_to_mp4_handler.cc Rebuild Text WebVtt to MP4 WebVtt 2018-06-01 19:49:56 +00:00
webvtt_to_mp4_handler.h Rebuild Text WebVtt to MP4 WebVtt 2018-06-01 19:49:56 +00:00
webvtt_to_mp4_handler_unittest.cc Add is_key_frame in IsMediaSample Matcher 2018-06-18 16:05:22 +00:00