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

Side by Side Diff: media/tools/player_x11/data_source_logger.cc

Issue 9860027: Remove DemuxerFactory and URL parameter from Pipeline. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src
Patch Set: again Created 8 years, 8 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 | Annotate | Revision Log
« no previous file with comments | « media/tools/player_x11/data_source_logger.h ('k') | media/tools/player_x11/player_x11.cc » ('j') | 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 "base/bind.h" 5 #include "base/bind.h"
6 #include "base/logging.h" 6 #include "base/logging.h"
7 #include "media/tools/player_x11/data_source_logger.h" 7 #include "media/tools/player_x11/data_source_logger.h"
8 8
9 static void LogAndRunStopClosure(const base::Closure& closure) { 9 static void LogAndRunStopClosure(const base::Closure& closure) {
10 VLOG(1) << "Stop() finished"; 10 VLOG(1) << "Stop() finished";
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after
56 if (streaming_) { 56 if (streaming_) {
57 VLOG(1) << "IsStreaming() -> true (overridden)"; 57 VLOG(1) << "IsStreaming() -> true (overridden)";
58 return true; 58 return true;
59 } 59 }
60 60
61 bool streaming = data_source_->IsStreaming(); 61 bool streaming = data_source_->IsStreaming();
62 VLOG(1) << "IsStreaming() -> " << (streaming ? "true" : "false"); 62 VLOG(1) << "IsStreaming() -> " << (streaming ? "true" : "false");
63 return streaming; 63 return streaming;
64 } 64 }
65 65
66 void DataSourceLogger::SetPreload(media::Preload preload) {
67 VLOG(1) << "SetPreload(" << preload << ")";
68 data_source_->SetPreload(preload);
69 }
70
71 void DataSourceLogger::SetBitrate(int bitrate) { 66 void DataSourceLogger::SetBitrate(int bitrate) {
72 VLOG(1) << "SetBitrate(" << bitrate << ")"; 67 VLOG(1) << "SetBitrate(" << bitrate << ")";
73 data_source_->SetBitrate(bitrate); 68 data_source_->SetBitrate(bitrate);
74 } 69 }
OLDNEW
« no previous file with comments | « media/tools/player_x11/data_source_logger.h ('k') | media/tools/player_x11/player_x11.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698