Chromium Code Reviews
DescriptionKeep reference to CDM to avoid it's premature destruction
Occassionally the CDM object is destroyed before the pipeline that
uses it is stopped, so have WebMediaPlayerImpl keep a reference to
it to prevent this from happening.
This worked in the past as the pipeline was destroyed from
HTMLMediaElement::stop() while the CDM was destroyed later from
MediaKeys::contextDestroyed(). A recent change merged stop()
and contextDestroyed(), so the CDM can be freed before
WebMediaPlayerImpl is done with it.
BUG=652978, 653001
TEST=EME layout tests pass
Committed: https://crrev.com/e616ee95642ecc0b168a8e807abc86ff3633cda8
Cr-Commit-Position: refs/heads/master@{#424046}
Patch Set 1 #
Total comments: 4
Patch Set 2 : MediaKeys #
Total comments: 18
Patch Set 3 : changes #
Total comments: 6
Patch Set 4 : nits #
Messages
Total messages: 16 (6 generated)
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||