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

Unified Diff: remoting/protocol/webrtc_video_renderer_adapter.cc

Issue 2371323007: Add audio support in WebrtcConnectionToHost, audio unittest (Closed)
Patch Set: more reliable test Created 4 years, 2 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « remoting/protocol/webrtc_transport.cc ('k') | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: remoting/protocol/webrtc_video_renderer_adapter.cc
diff --git a/remoting/protocol/webrtc_video_renderer_adapter.cc b/remoting/protocol/webrtc_video_renderer_adapter.cc
index cb6a360d0025c6fc5f1784865dbae3944fe37e85..c0cddbcf78c094232e1cec1f28e86a899b39fd40 100644
--- a/remoting/protocol/webrtc_video_renderer_adapter.cc
+++ b/remoting/protocol/webrtc_video_renderer_adapter.cc
@@ -78,10 +78,9 @@ void WebrtcVideoRendererAdapter::SetMediaStream(
media_stream_ = std::move(media_stream);
webrtc::VideoTrackVector video_tracks = media_stream_->GetVideoTracks();
- if (video_tracks.empty()) {
- LOG(ERROR) << "Received media stream with no video tracks.";
- return;
- }
+
+ // Caller must verify that the media stream contains video tracks.
+ DCHECK(!video_tracks.empty());
if (video_tracks.size() > 1U) {
LOG(WARNING) << "Received media stream with multiple video tracks.";
« no previous file with comments | « remoting/protocol/webrtc_transport.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698