Check if memory can be mapped before creating MojoCdmBuffer
It looks like SharedBufferHandle can fail to map into the current processes address space, so check that it succeeds before creating a MojoCdmBuffer. If it fails, return NULL. Bug: 1063823 Test: Encrypted videos play (using Shaka Player) Change-Id: I02a2f9f1daea7cd0188f77ee051ac9fe012d8119 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/2118890 Commit-Queue: John Rummell <jrummell@chromium.org> Reviewed-by:Xiaohan Wang <xhwang@chromium.org> Cr-Commit-Position: refs/heads/master@{#753400}
Showing
Please register or sign in to comment