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

Issue 1291763003: Don't do reconfiguration if recv codec order/preference changes (Closed)

Created:
5 years, 4 months ago by Taylor Brandstetter
Modified:
5 years, 4 months ago
Reviewers:
tommi, pthatcher1
CC:
webrtc-reviews_webrtc.org, interface-changes_webrtc.org, rwolff_gocast.it, yujie_mao (webrtc), Andrew MacDonald, tterriberry_mozilla.com, qiang.lu, niklas.enbom
Base URL:
https://chromium.googlesource.com/external/webrtc.git@master
Target Ref:
refs/pending/heads/master
Project:
webrtc
Visibility:
Public.

Description

Don't do reconfiguration if recv codec order/preference changes Adding 'ReceiveCodecsHaveChanged' method that will determine if codecs HAVE changed, irrespective of order and preference. Committed: https://crrev.com/874ca3af5b163e1b3fd8802171e44ee252557842 Cr-Commit-Position: refs/heads/master@{#9748}

Patch Set 1 #

Patch Set 2 : Adding unit test #

Total comments: 4

Patch Set 3 : Fixing minor code style problems #

Patch Set 4 : missed a line #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+123 lines, -15 lines) Patch
M talk/media/webrtc/webrtcvideoengine2.h View 1 2 2 chunks +5 lines, -0 lines 2 comments Download
M talk/media/webrtc/webrtcvideoengine2.cc View 1 2 3 17 chunks +98 lines, -15 lines 1 comment Download
M talk/media/webrtc/webrtcvideoengine2_unittest.cc View 1 2 1 chunk +20 lines, -0 lines 0 comments Download

Messages

Total messages: 16 (4 generated)
Taylor Brandstetter
Part 2 of the video flashing bug fix
5 years, 4 months ago (2015-08-12 23:08:29 UTC) #2
pthatcher1
lgtm, assuming you change the method name. https://codereview.webrtc.org/1291763003/diff/20001/talk/media/webrtc/webrtcvideoengine2.cc File talk/media/webrtc/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1291763003/diff/20001/talk/media/webrtc/webrtcvideoengine2.cc#newcode863 talk/media/webrtc/webrtcvideoengine2.cc:863: return true; ...
5 years, 4 months ago (2015-08-18 20:24:32 UTC) #3
Taylor Brandstetter
https://codereview.webrtc.org/1291763003/diff/20001/talk/media/webrtc/webrtcvideoengine2.cc File talk/media/webrtc/webrtcvideoengine2.cc (right): https://codereview.webrtc.org/1291763003/diff/20001/talk/media/webrtc/webrtcvideoengine2.cc#newcode863 talk/media/webrtc/webrtcvideoengine2.cc:863: return true; On 2015/08/18 20:24:32, pthatcher1 wrote: > {}s ...
5 years, 4 months ago (2015-08-20 23:07:47 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1291763003/60001 View timeline at https://chromium-cq-status.appspot.com/patch-timeline/1291763003/60001
5 years, 4 months ago (2015-08-20 23:11:59 UTC) #7
commit-bot: I haz the power
Committed patchset #4 (id:60001)
5 years, 4 months ago (2015-08-21 00:19:26 UTC) #8
commit-bot: I haz the power
Patchset 4 (id:??) landed as https://crrev.com/874ca3af5b163e1b3fd8802171e44ee252557842 Cr-Commit-Position: refs/heads/master@{#9748}
5 years, 4 months ago (2015-08-21 00:19:34 UTC) #9
tommi
drive-by while rolling https://codereview.webrtc.org/1291763003/diff/60001/talk/media/webrtc/webrtcvideoengine2.h File talk/media/webrtc/webrtcvideoengine2.h (right): https://codereview.webrtc.org/1291763003/diff/60001/talk/media/webrtc/webrtcvideoengine2.h#newcode500 talk/media/webrtc/webrtcvideoengine2.h:500: static bool ReceiveCodecsHaveChanged(std::vector<VideoCodecSettings> before, shouldn't these ...
5 years, 4 months ago (2015-08-22 21:44:04 UTC) #11
pthatcher1
https://codereview.webrtc.org/1291763003/diff/60001/talk/media/webrtc/webrtcvideoengine2.h File talk/media/webrtc/webrtcvideoengine2.h (right): https://codereview.webrtc.org/1291763003/diff/60001/talk/media/webrtc/webrtcvideoengine2.h#newcode500 talk/media/webrtc/webrtcvideoengine2.h:500: static bool ReceiveCodecsHaveChanged(std::vector<VideoCodecSettings> before, On 2015/08/22 21:44:04, tommi (webrtc) ...
5 years, 4 months ago (2015-08-24 16:19:12 UTC) #12
tommi
Does recv_codecs_ need to remain unsorted? Maybe it would be ok to pass the vectors ...
5 years, 4 months ago (2015-08-24 17:05:37 UTC) #13
pthatcher1
On 2015/08/24 17:05:37, tommi (webrtc) wrote: > Does recv_codecs_ need to remain unsorted? Maybe it ...
5 years, 4 months ago (2015-08-24 17:38:00 UTC) #14
tommi
On 2015/08/24 17:38:00, pthatcher1 wrote: > On 2015/08/24 17:05:37, tommi (webrtc) wrote: > > Does ...
5 years, 4 months ago (2015-08-24 17:50:21 UTC) #15
Taylor Brandstetter
5 years, 4 months ago (2015-08-24 18:04:17 UTC) #16
Message was sent while issue was closed.
On 2015/08/24 17:05:37, tommi (webrtc) wrote:
> Does recv_codecs_ need to remain unsorted?  Maybe it would be ok to pass the
> vectors as pointers?  I know this isn't a big issue but since the structures
are
> pretty big and at least one of them is temporary it seems like a waste to copy
> them only to sort and discard the copies.
> 
>
https://codereview.webrtc.org/1291763003/diff/60001/talk/media/webrtc/webrtcv...
> File talk/media/webrtc/webrtcvideoengine2.cc (right):
> 
>
https://codereview.webrtc.org/1291763003/diff/60001/talk/media/webrtc/webrtcv...
> talk/media/webrtc/webrtcvideoengine2.cc:953: recv_codecs_ = supported_codecs;
> nit: swap()? :)

I probably could have done that. But I wasn't sure if there was some value to
storing the codecs in their original order, and thought it may be a premature
optimization to change "ReceiveCodecsHaveChanged" to "CheckIfChangedAndSort". I
definitely agree about the swap() though.

Powered by Google App Engine
This is Rietveld 408576698