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

Issue 8890071: Stop audio FFmpegDemuxerStreams if we get notified that audio rendering is disabled. (Closed)

Created:
9 years ago by scherkus (not reviewing)
Modified:
9 years ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, Paweł Hajdan Jr., vrk (LEFT CHROMIUM), scherkus (not reviewing), ihf+watch_chromium.org
Visibility:
Public.

Description

Stop audio FFmpegDemuxerStreams if we get notified that audio rendering is disabled. This prevents reading the entire file until end of stream when attempting to read audio data while disabled. Part of this bug was due to keeping two separate arrays of FFmpegDemuxerStreams and inspecting the wrong one. To further reinforce this change, the two arrays have been merged. BUG=106735 TEST=disable audio service on Windows 7 then navigate to various HTML5 audio/video resource with a clean profile: it should take less time to load and the buffer bar should be only partially full instead of 100% full Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=114699

Patch Set 1 #

Patch Set 2 : fixes #

Patch Set 3 : one more time #

Total comments: 4

Patch Set 4 : changed streams #

Patch Set 5 : added more tests #

Patch Set 6 : more tests #

Patch Set 7 : typo #

Total comments: 4

Patch Set 8 : foo #

Unified diffs Side-by-side diffs Delta from patch set Stats (+120 lines, -76 lines) Patch
M media/filters/ffmpeg_demuxer.h View 1 2 3 2 chunks +7 lines, -9 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 4 4 chunks +59 lines, -54 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 2 3 4 5 6 7 5 chunks +54 lines, -13 lines 0 comments Download

Messages

Total messages: 6 (0 generated)
scherkus (not reviewing)
I tried a few testing approaches but didn't like them for various reasons. I settled ...
9 years ago (2011-12-13 03:52:56 UTC) #1
acolwell GONE FROM CHROMIUM
http://codereview.chromium.org/8890071/diff/3001/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): http://codereview.chromium.org/8890071/diff/3001/media/filters/ffmpeg_demuxer.cc#newcode646 media/filters/ffmpeg_demuxer.cc:646: for (StreamVector::iterator iter = streams_.begin(); I don't feel good ...
9 years ago (2011-12-13 16:45:43 UTC) #2
scherkus (not reviewing)
http://codereview.chromium.org/8890071/diff/3001/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): http://codereview.chromium.org/8890071/diff/3001/media/filters/ffmpeg_demuxer.cc#newcode646 media/filters/ffmpeg_demuxer.cc:646: for (StreamVector::iterator iter = streams_.begin(); On 2011/12/13 16:45:44, acolwell ...
9 years ago (2011-12-13 17:24:56 UTC) #3
scherkus (not reviewing)
PTAL I also added created some additional tests for edge cases that I ran into ...
9 years ago (2011-12-15 02:37:58 UTC) #4
acolwell GONE FROM CHROMIUM
LGTM http://codereview.chromium.org/8890071/diff/13001/media/filters/ffmpeg_demuxer_unittest.cc File media/filters/ffmpeg_demuxer_unittest.cc (right): http://codereview.chromium.org/8890071/diff/13001/media/filters/ffmpeg_demuxer_unittest.cc#newcode222 media/filters/ffmpeg_demuxer_unittest.cc:222: EXPECT_FALSE(stream); nit: Do you need to assign to ...
9 years ago (2011-12-15 18:02:22 UTC) #5
scherkus (not reviewing)
9 years ago (2011-12-15 19:24:37 UTC) #6
http://codereview.chromium.org/8890071/diff/13001/media/filters/ffmpeg_demuxe...
File media/filters/ffmpeg_demuxer_unittest.cc (right):

http://codereview.chromium.org/8890071/diff/13001/media/filters/ffmpeg_demuxe...
media/filters/ffmpeg_demuxer_unittest.cc:222: EXPECT_FALSE(stream);
On 2011/12/15 18:02:22, acolwell wrote:
> nit: Do you need to assign to stream? Can't the GetStream() call be placed
> inside the EXPECT_FALSE()?

Done.

Was copy+pasting :)

http://codereview.chromium.org/8890071/diff/13001/media/filters/ffmpeg_demuxe...
media/filters/ffmpeg_demuxer_unittest.cc:251: EXPECT_FALSE(stream);
On 2011/12/15 18:02:22, acolwell wrote:
> nit: ditto. This check could probably be moved to InitializeDemuxer() so it
> occurs on a wider range of tests.

Done.

Powered by Google App Engine
This is Rietveld 408576698