| Index: chrome/renderer/media/cast_rtp_stream.cc
|
| diff --git a/chrome/renderer/media/cast_rtp_stream.cc b/chrome/renderer/media/cast_rtp_stream.cc
|
| index aa4d9892c6d5f442f9e3e49deabc7bb24a97274f..4f43842904a9bd4c60905c42b27527855ddf19f0 100644
|
| --- a/chrome/renderer/media/cast_rtp_stream.cc
|
| +++ b/chrome/renderer/media/cast_rtp_stream.cc
|
| @@ -105,7 +105,7 @@ CastRtpPayloadParams DefaultH264Payload() {
|
| bool IsHardwareVP8EncodingSupported() {
|
| const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
|
| if (cmd_line->HasSwitch(switches::kDisableCastStreamingHWEncoding)) {
|
| - VLOG(1) << "Disabled hardware VP8 support for Cast Streaming.";
|
| + DVLOG(1) << "Disabled hardware VP8 support for Cast Streaming.";
|
| return false;
|
| }
|
|
|
| @@ -124,7 +124,7 @@ bool IsHardwareVP8EncodingSupported() {
|
| bool IsHardwareH264EncodingSupported() {
|
| const base::CommandLine* cmd_line = base::CommandLine::ForCurrentProcess();
|
| if (cmd_line->HasSwitch(switches::kDisableCastStreamingHWEncoding)) {
|
| - VLOG(1) << "Disabled hardware h264 support for Cast Streaming.";
|
| + DVLOG(1) << "Disabled hardware h264 support for Cast Streaming.";
|
| return false;
|
| }
|
|
|
| @@ -528,7 +528,7 @@ void CastRtpStream::Start(const CastRtpParams& params,
|
| const base::Closure& start_callback,
|
| const base::Closure& stop_callback,
|
| const ErrorCallback& error_callback) {
|
| - VLOG(1) << "CastRtpStream::Start = " << (IsAudio() ? "audio" : "video");
|
| + DVLOG(1) << "CastRtpStream::Start = " << (IsAudio() ? "audio" : "video");
|
| stop_callback_ = stop_callback;
|
| error_callback_ = error_callback;
|
|
|
| @@ -575,7 +575,7 @@ void CastRtpStream::Start(const CastRtpParams& params,
|
| }
|
|
|
| void CastRtpStream::Stop() {
|
| - VLOG(1) << "CastRtpStream::Stop = " << (IsAudio() ? "audio" : "video");
|
| + DVLOG(1) << "CastRtpStream::Stop = " << (IsAudio() ? "audio" : "video");
|
| audio_sink_.reset();
|
| video_sink_.reset();
|
| if (!stop_callback_.is_null())
|
| @@ -583,23 +583,23 @@ void CastRtpStream::Stop() {
|
| }
|
|
|
| void CastRtpStream::ToggleLogging(bool enable) {
|
| - VLOG(1) << "CastRtpStream::ToggleLogging(" << enable << ") = "
|
| - << (IsAudio() ? "audio" : "video");
|
| + DVLOG(1) << "CastRtpStream::ToggleLogging(" << enable << ") = "
|
| + << (IsAudio() ? "audio" : "video");
|
| cast_session_->ToggleLogging(IsAudio(), enable);
|
| }
|
|
|
| void CastRtpStream::GetRawEvents(
|
| const base::Callback<void(scoped_ptr<base::BinaryValue>)>& callback,
|
| const std::string& extra_data) {
|
| - VLOG(1) << "CastRtpStream::GetRawEvents = "
|
| - << (IsAudio() ? "audio" : "video");
|
| + DVLOG(1) << "CastRtpStream::GetRawEvents = "
|
| + << (IsAudio() ? "audio" : "video");
|
| cast_session_->GetEventLogsAndReset(IsAudio(), extra_data, callback);
|
| }
|
|
|
| void CastRtpStream::GetStats(
|
| const base::Callback<void(scoped_ptr<base::DictionaryValue>)>& callback) {
|
| - VLOG(1) << "CastRtpStream::GetStats = "
|
| - << (IsAudio() ? "audio" : "video");
|
| + DVLOG(1) << "CastRtpStream::GetStats = "
|
| + << (IsAudio() ? "audio" : "video");
|
| cast_session_->GetStatsAndReset(IsAudio(), callback);
|
| }
|
|
|
| @@ -608,8 +608,8 @@ bool CastRtpStream::IsAudio() const {
|
| }
|
|
|
| void CastRtpStream::DidEncounterError(const std::string& message) {
|
| - VLOG(1) << "CastRtpStream::DidEncounterError(" << message << ") = "
|
| - << (IsAudio() ? "audio" : "video");
|
| + DVLOG(1) << "CastRtpStream::DidEncounterError(" << message << ") = "
|
| + << (IsAudio() ? "audio" : "video");
|
| // Save the WeakPtr first because the error callback might delete this object.
|
| base::WeakPtr<CastRtpStream> ptr = weak_factory_.GetWeakPtr();
|
| error_callback_.Run(message);
|
|
|