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

Issue 149500: More media::PipelineImpl cleanup, this time focusing on not taking down the render process. (Closed)

Created:
11 years, 5 months ago by scherkus (not reviewing)
Modified:
9 years, 7 months ago
CC:
chromium-reviews_googlegroups.com
Visibility:
Public.

Description

More media::PipelineImpl cleanup, this time focusing on not taking down the render process. Specifically, if the pipeline hasn't started we should fail gracefully and not DCHECK. Volume and playback rate are now allowed to be set if the pipeline isn't running, and filters will now receive a call to SetVolume() and SetPlaybackRate() with the initial values when the pipeline has fully initialized. Added tests and expectations for all of this and ran valgrind to verify that we were indeed leaking memory (now fixed). BUG=16009, 13902 TEST=media_unittests, layout tests

Patch Set 1 #

Patch Set 2 : Cleanup #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+145 lines, -64 lines) Patch
M media/base/pipeline_impl.h View 4 chunks +15 lines, -14 lines 2 comments Download
M media/base/pipeline_impl.cc View 10 chunks +52 lines, -42 lines 1 comment Download
M media/base/pipeline_impl_unittest.cc View 1 12 chunks +78 lines, -8 lines 0 comments Download

Messages

Total messages: 3 (0 generated)
scherkus (not reviewing)
11 years, 5 months ago (2009-07-11 00:12:51 UTC) #1
Alpha Left Google
LGTM. http://codereview.chromium.org/149500/diff/5/6 File media/base/pipeline_impl.cc (right): http://codereview.chromium.org/149500/diff/5/6#newcode82 Line 82: scoped_ptr<PipelineCallback> callback(start_callback); good catch on leak! :) ...
11 years, 5 months ago (2009-07-11 02:05:36 UTC) #2
scherkus (not reviewing)
11 years, 5 months ago (2009-07-11 02:39:58 UTC) #3
http://codereview.chromium.org/149500/diff/5/7
File media/base/pipeline_impl.h (right):

http://codereview.chromium.org/149500/diff/5/7#newcode187
Line 187: // Notifications that the client has changed the playback rate/volume.
On 2009/07/11 02:05:36, Alpha wrote:
> Notifies?

Done.

Powered by Google App Engine
This is Rietveld 408576698