Fix crash when pipeline is stopped while video restart is pending
Media renderer might get destroyed (due to pipeline being stopped or suspended) while a video track restart is pending. When that happens the VideoRendererImpl has a pending flush_cb_ that will get called from video renderer destructor invoking RendererImpl::RestartVideoRenderer, so RestartVideoRenderer needs to actually try restarting the video renderer only if we are still in the playing state. BUG=668963 Review-Url: https://codereview.chromium.org/2570773002 Cr-Commit-Position: refs/heads/master@{#441457}
Showing
Please register or sign in to comment