shaka-packager/packager
Joey Parrish 962baf0286 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-19 20:25:07 -07:00
..
app Fix python style errors 2020-03-19 15:50:25 -07:00
buildtools/third_party Update DEPS to fix mac build failure 2016-08-19 13:49:41 -07:00
file Call WSAStartup once for every new socket 2019-11-20 14:00:51 -08:00
hls Add --hls_media_sequence_number to support custom value in HLS 2020-01-31 10:25:19 -08:00
media Fix reading WebVTT from a pipe 2020-03-19 20:25:07 -07:00
mpd Adding --allow_codec_switching (#726) 2020-03-17 19:33:44 -07:00
testing Disable bundled_binutils and bundled_gold on Linux 2018-08-24 21:14:19 +00:00
third_party Roll boringssl/src fc9c67599..76918d016 2019-10-23 04:32:33 +00:00
tools Update pssh-box.py to remove external dependencies 2019-01-31 00:49:12 +00:00
version Fix git not found error on Windows when running gclient (#728) 2020-03-13 09:22:12 -07:00
common.gypi Add instructions to build on Alpine Linux 2018-08-17 20:46:11 +00:00
packager.cc Fix reading WebVTT from a pipe 2020-03-19 20:25:07 -07:00
packager.gyp Update pssh-box.py to remove external dependencies 2019-01-31 00:49:12 +00:00
packager.h Support dash_only and hls_only parameters (#721) 2020-03-06 10:19:47 -08:00
packager_test.cc Return an error when seeing duplicated outputs 2018-11-27 22:38:48 +00:00
protoc.gypi Support generation of libpackager.so (shared_library) 2017-06-13 20:42:32 +00:00
status.cc Fix error code message for trick play error 2018-12-13 00:26:55 +00:00
status.h Cleans up Status class 2018-01-31 03:32:07 +00:00
status_macros.h Generate full segment after cue point 2018-03-27 19:14:26 +00:00
status_test_util.h Implement multi DRM support. (Part 1) 2018-03-03 01:39:16 +00:00
status_unittest.cc Cleans up Status class 2018-01-31 03:32:07 +00:00