DescriptionFix a crash that MediaPlayerAndroid weak_ptr is incorrectly used across thread
For MediaPlayerListener, the callbacks can happen on a non-UI thread.
Weak_ptr is not thread safe, so we shouldn't bind the weak_ptr in those callbacks.
This change creates a threadsafe proxy class to bridge all the callbacks.
BUG=453581, 447368, 447367
Committed: https://crrev.com/2e9885788692f69203a98fb42347428ef553d640
Cr-Commit-Position: refs/heads/master@{#314241}
Patch Set 1 #
Messages
Total messages: 8 (2 generated)
|