OLD | NEW |
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 Loading... |
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 } |
OLD | NEW |