Descriptionmedia: Avoid access violation in MojoCdm after connection error
Upon connection error during CDM initialization, after we rejected and
dropped the promise, MojoCdm could be destructed. We should not try to
close pending sessions in this case, and in fact we shouldn't have any
sessions open before the CDM is successfully initialized.
Added a unittest to cover the case where CDM creation failed due to
connection error.
BUG=652856, 657069
TEST=Manually tested. Also added a new unittest.
Committed: https://crrev.com/1f3429ba51d768e7461bb702afb74b234efb7337
Cr-Commit-Position: refs/heads/master@{#436857}
Patch Set 1 #Patch Set 2 : add unittests #
Total comments: 6
Patch Set 3 : comments addressed #
Messages
Total messages: 20 (11 generated)
|