Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(668)

Side by Side Diff: media/base/pipeline.cc

Issue 593963004: Fix typo in Pipeline::PlaybackRateChangedTask(). (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
« no previous file with comments | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "media/base/pipeline.h" 5 #include "media/base/pipeline.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/callback.h" 10 #include "base/callback.h"
(...skipping 535 matching lines...) Expand 10 before | Expand all | Expand 10 after
546 DoStop(base::Bind(&Pipeline::OnStopCompleted, weak_factory_.GetWeakPtr())); 546 DoStop(base::Bind(&Pipeline::OnStopCompleted, weak_factory_.GetWeakPtr()));
547 } 547 }
548 548
549 void Pipeline::PlaybackRateChangedTask(float playback_rate) { 549 void Pipeline::PlaybackRateChangedTask(float playback_rate) {
550 DCHECK(task_runner_->BelongsToCurrentThread()); 550 DCHECK(task_runner_->BelongsToCurrentThread());
551 551
552 // Playback rate changes are only carried out while playing. 552 // Playback rate changes are only carried out while playing.
553 if (state_ != kPlaying) 553 if (state_ != kPlaying)
554 return; 554 return;
555 555
556 renderer_->SetPlaybackRate(playback_rate_); 556 renderer_->SetPlaybackRate(playback_rate);
557 } 557 }
558 558
559 void Pipeline::VolumeChangedTask(float volume) { 559 void Pipeline::VolumeChangedTask(float volume) {
560 DCHECK(task_runner_->BelongsToCurrentThread()); 560 DCHECK(task_runner_->BelongsToCurrentThread());
561 561
562 // Volume changes are only carried out while playing. 562 // Volume changes are only carried out while playing.
563 if (state_ != kPlaying) 563 if (state_ != kPlaying)
564 return; 564 return;
565 565
566 renderer_->SetVolume(volume); 566 renderer_->SetVolume(volume);
(...skipping 140 matching lines...) Expand 10 before | Expand all | Expand 10 after
707 metadata_cb_.Run(metadata); 707 metadata_cb_.Run(metadata);
708 } 708 }
709 709
710 void Pipeline::BufferingStateChanged(BufferingState new_buffering_state) { 710 void Pipeline::BufferingStateChanged(BufferingState new_buffering_state) {
711 DVLOG(1) << __FUNCTION__ << "(" << new_buffering_state << ") "; 711 DVLOG(1) << __FUNCTION__ << "(" << new_buffering_state << ") ";
712 DCHECK(task_runner_->BelongsToCurrentThread()); 712 DCHECK(task_runner_->BelongsToCurrentThread());
713 buffering_state_cb_.Run(new_buffering_state); 713 buffering_state_cb_.Run(new_buffering_state);
714 } 714 }
715 715
716 } // namespace media 716 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698