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

Issue 8184003: Fix hangs & crashes in teardown-during-Seek. (Closed)

Created:
9 years, 2 months ago by Ami GONE FROM CHROMIUM
Modified:
9 years, 2 months ago
CC:
chromium-reviews, hclam+watch_chromium.org, ddorwin+watch_chromium.org, fischman+watch_chromium.org, jam, dpranke+watch-content_chromium.org, acolwell+watch_chromium.org, annacc+watch_chromium.org, joi+watch-content_chromium.org, darin-cc_chromium.org, ajwong+watch_chromium.org, vrk (LEFT CHROMIUM), scherkus (not reviewing)
Visibility:
Public.

Description

Fix hangs & crashes in teardown-during-Seek. Hangs: - AudioRendererImpl: Don't hold lock_ in the call to Join() b/c OnStop wants to acquire the lock before exiting. - FFmpegDemuxerStream::Stop: signal EOS to waiting read callbacks (instead of silently dropping them on the floor) so decoders can exit instead of stalling (and causing renderers to stall). Crashes: - CompositeFilter::Stop: clear out the Seek callback when Stopping. - FFmpegVideoDecoder::ProduceVideoFrame: early-return if already stopped (racing with webkit repaints makes this necessary). Also fixed a bunch of mis-indentation where I saw it. BUG=98975, 98948, 98955, 96861 TEST=trybots, manual Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=104540

Patch Set 1 #

Total comments: 6

Patch Set 2 : . #

Patch Set 3 : . #

Patch Set 4 : . #

Unified diffs Side-by-side diffs Delta from patch set Stats (+43 lines, -24 lines) Patch
M content/renderer/media/audio_renderer_impl.cc View 1 2 3 2 chunks +20 lines, -10 lines 0 comments Download
M media/base/composite_filter.cc View 3 chunks +5 lines, -2 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 7 chunks +12 lines, -7 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 chunk +4 lines, -2 lines 0 comments Download
M media/filters/video_renderer_base.cc View 3 chunks +2 lines, -3 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
Ami GONE FROM CHROMIUM
The manual testing here was using scherkus' benchmark.html page (linked to from the related BUGs). ...
9 years, 2 months ago (2011-10-06 23:25:44 UTC) #1
acolwell GONE FROM CHROMIUM
LGTM http://codereview.chromium.org/8184003/diff/1/content/renderer/media/audio_renderer_impl.cc File content/renderer/media/audio_renderer_impl.cc (right): http://codereview.chromium.org/8184003/diff/1/content/renderer/media/audio_renderer_impl.cc#newcode121 content/renderer/media/audio_renderer_impl.cc:121: CHECK(socket->Close()); Does this need to happen outside of ...
9 years, 2 months ago (2011-10-07 15:50:46 UTC) #2
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/8184003/diff/1/content/renderer/media/audio_renderer_impl.cc File content/renderer/media/audio_renderer_impl.cc (right): http://codereview.chromium.org/8184003/diff/1/content/renderer/media/audio_renderer_impl.cc#newcode121 content/renderer/media/audio_renderer_impl.cc:121: CHECK(socket->Close()); On 2011/10/07 15:50:47, acolwell wrote: > Does this ...
9 years, 2 months ago (2011-10-07 16:44:47 UTC) #3
acolwell GONE FROM CHROMIUM
http://codereview.chromium.org/8184003/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): http://codereview.chromium.org/8184003/diff/1/media/filters/ffmpeg_demuxer.cc#newcode57 media/filters/ffmpeg_demuxer.cc:57: class EndOfStreamBuffer : public Buffer { On 2011/10/07 16:44:47, ...
9 years, 2 months ago (2011-10-07 16:56:58 UTC) #4
Ami GONE FROM CHROMIUM
http://codereview.chromium.org/8184003/diff/1/media/filters/ffmpeg_demuxer.cc File media/filters/ffmpeg_demuxer.cc (right): http://codereview.chromium.org/8184003/diff/1/media/filters/ffmpeg_demuxer.cc#newcode57 media/filters/ffmpeg_demuxer.cc:57: class EndOfStreamBuffer : public Buffer { On 2011/10/07 16:56:59, ...
9 years, 2 months ago (2011-10-07 17:11:10 UTC) #5
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/8184003/3003
9 years, 2 months ago (2011-10-07 17:14:20 UTC) #6
commit-bot: I haz the power
Can't apply patch for file content/renderer/media/audio_renderer_impl.cc. While running patch -p1 --forward --force; patching file content/renderer/media/audio_renderer_impl.cc ...
9 years, 2 months ago (2011-10-07 17:14:22 UTC) #7
commit-bot: I haz the power
CQ is trying the patch. Follow status at https://chromium-status.appspot.com/cq/fischman@chromium.org/8184003/7002
9 years, 2 months ago (2011-10-07 17:33:10 UTC) #8
commit-bot: I haz the power
9 years, 2 months ago (2011-10-07 19:12:23 UTC) #9
Change committed as 104540

Powered by Google App Engine
This is Rietveld 408576698