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

Side by Side Diff: webrtc/video/vie_encoder.cc

Issue 2088123003: Explicitly logging video suspend state. (Closed) Base URL: https://chromium.googlesource.com/external/webrtc.git@master
Patch Set: Created 4 years, 6 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 /* 1 /*
2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved. 2 * Copyright (c) 2012 The WebRTC project authors. All Rights Reserved.
3 * 3 *
4 * Use of this source code is governed by a BSD-style license 4 * Use of this source code is governed by a BSD-style license
5 * that can be found in the LICENSE file in the root of the source 5 * that can be found in the LICENSE file in the root of the source
6 * tree. An additional intellectual property rights grant can be found 6 * tree. An additional intellectual property rights grant can be found
7 * in the file PATENTS. All contributing project authors may 7 * in the file PATENTS. All contributing project authors may
8 * be found in the AUTHORS file in the root of the source tree. 8 * be found in the AUTHORS file in the root of the source tree.
9 */ 9 */
10 10
(...skipping 251 matching lines...) Expand 10 before | Expand all | Expand 10 after
262 // encoder report that it has timed out before it has processed the first 262 // encoder report that it has timed out before it has processed the first
263 // frame. 263 // frame.
264 if (last_observed_bitrate_bps_ != 0 && 264 if (last_observed_bitrate_bps_ != 0 &&
265 time_of_last_frame_activity_ms_ == 265 time_of_last_frame_activity_ms_ ==
266 std::numeric_limits<int64_t>::max()) { 266 std::numeric_limits<int64_t>::max()) {
267 time_of_last_frame_activity_ms_ = rtc::TimeMillis(); 267 time_of_last_frame_activity_ms_ = rtc::TimeMillis();
268 } 268 }
269 } 269 }
270 270
271 if (stats_proxy_ && video_suspension_changed) { 271 if (stats_proxy_ && video_suspension_changed) {
272 LOG(LS_INFO) << "Video suspend state changed " << video_is_suspended; 272 LOG(LS_INFO) << "Video suspend state changed to: "
273 << (video_is_suspended ? "suspended" : "not suspended");
273 stats_proxy_->OnSuspendChange(video_is_suspended); 274 stats_proxy_->OnSuspendChange(video_is_suspended);
274 } 275 }
275 } 276 }
276 277
277 } // namespace webrtc 278 } // namespace webrtc
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