Fix race condition when accessing time_progressing_.
The |time_progressing_| variable should only be accessed via the media thread, it can't be accessed under lock since it is set during a call which may be reentrant to locked methods. The fix is to use a proxy for |time_progressing_| when called from other threads; luckily the inverse of |render_first_frame_and_stop_| will suffice. BUG=512371 TEST=media_unittests Review URL: https://codereview.chromium.org/1247973002 Cr-Commit-Position: refs/heads/master@{#339817}
Showing
Please register or sign in to comment