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

Issue 193095: Pause for <video> should have immediate effect on audio (Closed)

Created:
11 years, 3 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

Pause for <video> should have immediate effect on audio BUG=20351 A bug found while fixing mac audio. IPCAudioSouce transist to a wrong state after Play() is called. Resulting to pause having no effect. This will solve the problem of audio keeps playing a while after it is paused. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=26500

Patch Set 1 #

Total comments: 2

Patch Set 2 : style #

Unified diffs Side-by-side diffs Delta from patch set Stats (+4 lines, -3 lines) Patch
M chrome/browser/renderer_host/audio_renderer_host.cc View 1 chunk +1 line, -1 line 0 comments Download
M media/audio/win/waveout_output_win.cc View 1 2 chunks +3 lines, -2 lines 0 comments Download

Messages

Total messages: 2 (0 generated)
Alpha Left Google
This will solve the problem of pause, but introduce a very bad behavior for still2.ogv ...
11 years, 3 months ago (2009-09-13 19:50:20 UTC) #1
scherkus (not reviewing)
11 years, 3 months ago (2009-09-17 03:23:59 UTC) #2
nits, but you can decide what's better -- LGTM!

http://codereview.chromium.org/193095/diff/1/3
File media/audio/win/waveout_output_win.cc (right):

http://codereview.chromium.org/193095/diff/1/3#newcode145
Line 145: pending_bytes_ = 0;
hmm would it make more sense to set this in Stop() when we're positive that
pending_bytes_ has reached zero?

http://codereview.chromium.org/193095/diff/1/3#newcode176
Line 176: // or else the waveOutReset will deadlock and secondly, the callback
should not
nit: waveOutReset -> waveOutReset()

Powered by Google App Engine
This is Rietveld 408576698