Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Don't create media state for text until ready to stream.
We start streaming text once subtitles have been enabled. With external text, we used to create a media state for it as soon as text was added even if captions were disabled and we did not actually stream, although no text was being parsed and shown. This lead to the following problem: If external text was added with subtitles disabled, we created the media state with no actual cues in it. Once the subtitles were enabled, we saw that a media state existed for text and assumed it had content. So, we started streaming, but nothing was shown. This change makes us only create the media state if subtitles are enabled and defer creation otherwise. Closes #1938. Change-Id: Iee39c30fbd6b7f0abe7772dfb75cba561fcc9998
- Loading branch information