Commit bb537f10 authored by servolk's avatar servolk Committed by Commit bot

Wake up other streams/task runners after removing ended stream

BUG=internal b/19560149

Review URL: https://codereview.chromium.org/1127183008

Cr-Commit-Position: refs/heads/master@{#330400}
parent eb6ee297
...@@ -244,8 +244,14 @@ void BalancedMediaTaskRunnerFactory::OnNewTask() { ...@@ -244,8 +244,14 @@ void BalancedMediaTaskRunnerFactory::OnNewTask() {
void BalancedMediaTaskRunnerFactory::UnregisterMediaTaskRunner( void BalancedMediaTaskRunnerFactory::UnregisterMediaTaskRunner(
const scoped_refptr<BalancedMediaTaskRunner>& media_task_runner) { const scoped_refptr<BalancedMediaTaskRunner>& media_task_runner) {
base::AutoLock auto_lock(lock_); {
task_runners_.erase(media_task_runner); base::AutoLock auto_lock(lock_);
task_runners_.erase(media_task_runner);
}
// After removing one of the task runners some of the other task runners might
// need to be waken up, if they are no longer blocked by the balancing
// restrictions with the old stream.
OnNewTask();
} }
} // namespace media } // namespace media
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment