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

Issue 1575223003: Added mute logic to VideoTrackRenderers. (Closed)

Created:
4 years, 11 months ago by nisse-webrtc
Modified:
4 years, 11 months ago
CC:
webrtc-reviews_webrtc.org
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Added mute logic to VideoTrackRenderers. If the track is disabled, replace incoming frames by black frames. Affects local rendering of disabled tracks. Also intended to replace the similar logic in WebRtcVideoChannel2::WebRtcVideoSendStream::InputFrame, once VideoRtpSender is hooked up as a renderer for the track. BUG=webrtc:5426 Committed: https://crrev.com/81354f5ef6b8250c6b370bb17d8447fdf24da00b Cr-Commit-Position: refs/heads/master@{#11297}

Patch Set 1 #

Total comments: 3

Patch Set 2 : Stack-allocate the black frame. #

Patch Set 3 : Added unit test. #

Total comments: 3

Patch Set 4 : Leave critical section while generating the black frame. #

Total comments: 1

Patch Set 5 : Comment on potential frame reorder #

Patch Set 6 : Updated PeerConnectionFactoryTest.LocalRendering #

Patch Set 7 : Added size_t to int cast, needed for windows compile #

Patch Set 8 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+82 lines, -8 lines) Patch
M talk/app/webrtc/peerconnectionfactory_unittest.cc View 1 2 3 4 5 1 chunk +5 lines, -3 lines 0 comments Download
M talk/app/webrtc/test/fakevideotrackrenderer.h View 1 2 1 chunk +2 lines, -0 lines 0 comments Download
M talk/app/webrtc/videotrack_unittest.cc View 1 2 3 4 5 6 7 1 chunk +35 lines, -0 lines 0 comments Download
M talk/app/webrtc/videotrackrenderers.h View 1 2 chunks +6 lines, -1 line 0 comments Download
M talk/app/webrtc/videotrackrenderers.cc View 1 2 3 4 5 6 2 chunks +34 lines, -4 lines 0 comments Download

Messages

Total messages: 50 (21 generated)
nisse-webrtc
4 years, 11 months ago (2016-01-12 14:45:19 UTC) #2
perkj_webrtc
I think this should go into the VideoTrack instead if a track is disabled. Similar ...
4 years, 11 months ago (2016-01-13 08:28:25 UTC) #3
nisse-webrtc
On 2016/01/13 08:28:25, perkj_webrtc wrote: > I think this should go into the VideoTrack instead ...
4 years, 11 months ago (2016-01-13 08:39:28 UTC) #4
perkj_webrtc
Please ignore my previous comments. I was confused by the name VideoRenderers. This do what ...
4 years, 11 months ago (2016-01-13 09:44:40 UTC) #5
nisse-webrtc
https://codereview.webrtc.org/1575223003/diff/1/talk/app/webrtc/videotrackrenderers.cc File talk/app/webrtc/videotrackrenderers.cc (right): https://codereview.webrtc.org/1575223003/diff/1/talk/app/webrtc/videotrackrenderers.cc#newcode59 talk/app/webrtc/videotrackrenderers.cc:59: cricket::VideoFrame* black = new cricket::WebRtcVideoFrame( On 2016/01/13 09:44:40, perkj_webrtc ...
4 years, 11 months ago (2016-01-13 10:33:16 UTC) #6
nisse-webrtc
On 2016/01/13 10:33:16, nisse-webrtc wrote: > https://codereview.webrtc.org/1575223003/diff/1/talk/app/webrtc/videotrackrenderers.cc > File talk/app/webrtc/videotrackrenderers.cc (right): > > https://codereview.webrtc.org/1575223003/diff/1/talk/app/webrtc/videotrackrenderers.cc#newcode59 > ...
4 years, 11 months ago (2016-01-13 10:57:27 UTC) #7
perkj_webrtc
lgtm https://codereview.webrtc.org/1575223003/diff/40001/talk/app/webrtc/videotrack_unittest.cc File talk/app/webrtc/videotrack_unittest.cc (right): https://codereview.webrtc.org/1575223003/diff/40001/talk/app/webrtc/videotrack_unittest.cc#newcode119 talk/app/webrtc/videotrack_unittest.cc:119: video_track_->GetSource()->FrameInput(); FrameInput it pretty horrible. But nice for ...
4 years, 11 months ago (2016-01-13 13:05:14 UTC) #8
pthatcher1
I think this is the wrong place to do this. Whether we send black or ...
4 years, 11 months ago (2016-01-13 17:13:38 UTC) #9
pthatcher1
On 2016/01/13 17:13:38, pthatcher1 wrote: > I think this is the wrong place to do ...
4 years, 11 months ago (2016-01-13 17:14:31 UTC) #10
perkj_webrtc
On 2016/01/13 17:14:31, pthatcher1 wrote: > On 2016/01/13 17:13:38, pthatcher1 wrote: > > I think ...
4 years, 11 months ago (2016-01-13 19:58:30 UTC) #11
nisse-webrtc
> Peter - The spec kind of say that a disabled track should produce black ...
4 years, 11 months ago (2016-01-14 07:59:39 UTC) #12
nisse-webrtc
https://codereview.webrtc.org/1575223003/diff/40001/talk/app/webrtc/videotrackrenderers.cc File talk/app/webrtc/videotrackrenderers.cc (right): https://codereview.webrtc.org/1575223003/diff/40001/talk/app/webrtc/videotrackrenderers.cc#newcode65 talk/app/webrtc/videotrackrenderers.cc:65: frame->GetVideoRotation()); On 2016/01/13 17:13:38, pthatcher1 wrote: > Why does ...
4 years, 11 months ago (2016-01-14 08:00:28 UTC) #13
nisse-webrtc
Now leaving the critical section while generating the black frame. RenderFrame isn't quite reentrant, frames ...
4 years, 11 months ago (2016-01-14 09:47:39 UTC) #14
pthatcher
lgtm https://codereview.webrtc.org/1575223003/diff/60001/talk/app/webrtc/videotrackrenderers.cc File talk/app/webrtc/videotrackrenderers.cc (right): https://codereview.webrtc.org/1575223003/diff/60001/talk/app/webrtc/videotrackrenderers.cc#newcode59 talk/app/webrtc/videotrackrenderers.cc:59: rtc::CritScope cs(&critical_section_); Can you put a comment that ...
4 years, 11 months ago (2016-01-14 19:23:09 UTC) #16
nisse-webrtc
On 2016/01/14 19:23:09, pthatcher wrote: > lgtm > > https://codereview.webrtc.org/1575223003/diff/60001/talk/app/webrtc/videotrackrenderers.cc > File talk/app/webrtc/videotrackrenderers.cc (right): > ...
4 years, 11 months ago (2016-01-18 08:25:58 UTC) #17
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575223003/80001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575223003/80001
4 years, 11 months ago (2016-01-18 08:40:03 UTC) #21
commit-bot: I haz the power
Try jobs failed on following builders: linux_asan on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/linux_asan/builds/11893) linux_rel on tryserver.webrtc (JOB_FAILED, ...
4 years, 11 months ago (2016-01-18 08:50:16 UTC) #23
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575223003/100001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575223003/100001
4 years, 11 months ago (2016-01-18 09:36:16 UTC) #26
commit-bot: I haz the power
Try jobs failed on following builders: win_x64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/win_x64_rel/builds/11918)
4 years, 11 months ago (2016-01-18 09:42:32 UTC) #28
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575223003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575223003/120001
4 years, 11 months ago (2016-01-18 09:57:30 UTC) #31
commit-bot: I haz the power
Try jobs failed on following builders: ios_arm64_rel on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/ios_arm64_rel/builds/6792) ios_dbg on tryserver.webrtc (JOB_FAILED, ...
4 years, 11 months ago (2016-01-18 09:59:30 UTC) #33
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575223003/120001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575223003/120001
4 years, 11 months ago (2016-01-18 14:32:49 UTC) #35
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575223003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575223003/140001
4 years, 11 months ago (2016-01-18 15:24:26 UTC) #38
commit-bot: I haz the power
Try jobs failed on following builders: android_dbg on tryserver.webrtc (JOB_FAILED, http://build.chromium.org/p/tryserver.webrtc/builders/android_dbg/builds/10387)
4 years, 11 months ago (2016-01-18 16:24:17 UTC) #40
commit-bot: I haz the power
Dry run: CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575223003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575223003/140001
4 years, 11 months ago (2016-01-19 07:21:17 UTC) #42
commit-bot: I haz the power
Dry run: This issue passed the CQ dry run.
4 years, 11 months ago (2016-01-19 08:05:51 UTC) #44
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1575223003/140001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1575223003/140001
4 years, 11 months ago (2016-01-19 08:22:03 UTC) #46
commit-bot: I haz the power
Committed patchset #8 (id:140001)
4 years, 11 months ago (2016-01-19 08:23:28 UTC) #48
commit-bot: I haz the power
4 years, 11 months ago (2016-01-19 08:23:36 UTC) #50
Message was sent while issue was closed.
Patchset 8 (id:??) landed as
https://crrev.com/81354f5ef6b8250c6b370bb17d8447fdf24da00b
Cr-Commit-Position: refs/heads/master@{#11297}

Powered by Google App Engine
This is Rietveld 408576698