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

Issue 2906893002: Avoid toggling default receive streams in WebRtcVideoChannel2. (Closed)

Created:
3 years, 7 months ago by brandtr
Modified:
3 years, 6 months ago
CC:
webrtc-reviews_webrtc.org, tterriberry_mozilla.com, the sun, sprang_webrtc
Target Ref:
refs/heads/master
Project:
webrtc
Visibility:
Public.

Description

Avoid toggling default receive streams in WebRtcVideoChannel2. This CL removes |default_recv_ssrc_| from DefaultUnsignalledSsrcHandler and replaces it with calls to a new member function WebRtcVideoChannel2::GetDefaultReceiveStreamSsrc. The latter checks the |default_stream_| member on the WebRtcVideoChannel2::WebRtcVideoReceiveStreams to know which stream is the current default stream. This change removes duplicate state and fixes an issue where incoming unsignaled SSRCs would compete for being the default receive stream. BUG=webrtc:7725 Review-Url: https://codereview.webrtc.org/2906893002 Cr-Commit-Position: refs/heads/master@{#18314} Committed: https://chromium.googlesource.com/external/webrtc/+/0dc57eabf6471084df5b9123eb1271636d8f99f3

Patch Set 1 : Unit test. #

Patch Set 2 : Fix. #

Total comments: 2

Patch Set 3 : sprang comments 1. #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -14 lines) Patch
M webrtc/media/engine/webrtcvideoengine2.h View 1 3 chunks +6 lines, -6 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2.cc View 1 2 5 chunks +27 lines, -8 lines 0 comments Download
M webrtc/media/engine/webrtcvideoengine2_unittest.cc View 1 chunk +49 lines, -0 lines 0 comments Download

Messages

Total messages: 19 (12 generated)
brandtr
Taylor, please have a look. This CL fixes a toggling issue that was introduced in ...
3 years, 7 months ago (2017-05-26 14:36:23 UTC) #3
sprang_webrtc
https://codereview.webrtc.org/2906893002/diff/20001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/2906893002/diff/20001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1546 webrtc/media/engine/webrtcvideoengine2.cc:1546: ssrc = rtc::Optional<uint32_t>(it->first); nit: ssrc.emplace(it->first); ...any maybe break; ? ...
3 years, 7 months ago (2017-05-26 15:00:19 UTC) #5
Taylor Brandstetter
lgtm; thanks for figuring this out. Can you create an open-source bug report describing the ...
3 years, 7 months ago (2017-05-26 22:23:53 UTC) #6
brandtr
https://codereview.webrtc.org/2906893002/diff/20001/webrtc/media/engine/webrtcvideoengine2.cc File webrtc/media/engine/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/2906893002/diff/20001/webrtc/media/engine/webrtcvideoengine2.cc#newcode1546 webrtc/media/engine/webrtcvideoengine2.cc:1546: ssrc = rtc::Optional<uint32_t>(it->first); On 2017/05/26 15:00:19, sprang_webrtc wrote: > ...
3 years, 6 months ago (2017-05-29 13:56:26 UTC) #7
sprang_webrtc
lgtm
3 years, 6 months ago (2017-05-29 14:32:09 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at: https://chromium-cq-status.appspot.com/v2/patch-status/codereview.webrtc.org/2906893002/40001
3 years, 6 months ago (2017-05-30 06:31:53 UTC) #16
commit-bot: I haz the power
3 years, 6 months ago (2017-05-30 06:33:39 UTC) #19
Message was sent while issue was closed.
Committed patchset #3 (id:40001) as
https://chromium.googlesource.com/external/webrtc/+/0dc57eabf6471084df5b9123e...

Powered by Google App Engine
This is Rietveld 408576698