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

Issue 10828045: Rewrite media::Pipeline state transition machinery. (Closed)

Created:
8 years, 4 months ago by scherkus (not reviewing)
Modified:
8 years, 4 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Visibility:
Public.

Description

Rewrite media::Pipeline state transition machinery. Previously we had three separate state machine handlers: OnFilterInitialize(), OnFilterStateTransition(), and OnTeardownStateTransition(). This change combines them into a single state machine handler OnStateTransition(). As part of the cleanup redundant states kEnded and kError were eliminated. BUG=138583 TEST=everything

Patch Set 1 #

Patch Set 2 : done ... I think #

Patch Set 3 : stuff #

Total comments: 53
Unified diffs Side-by-side diffs Delta from patch set Stats (+557 lines, -849 lines) Patch
M media/base/media_log.cc View 1 chunk +0 lines, -4 lines 0 comments Download
M media/base/mock_filters.h View 1 1 chunk +0 lines, -11 lines 0 comments Download
M media/base/pipeline.h View 1 13 chunks +35 lines, -139 lines 9 comments Download
M media/base/pipeline.cc View 1 2 23 chunks +319 lines, -597 lines 38 comments Download
M media/base/pipeline_unittest.cc View 1 24 chunks +199 lines, -89 lines 5 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 3 chunks +4 lines, -9 lines 1 comment Download

Messages

Total messages: 5 (0 generated)
scherkus (not reviewing)
*boom* http://codereview.chromium.org/10828045/diff/7/media/base/pipeline.cc File media/base/pipeline.cc (left): http://codereview.chromium.org/10828045/diff/7/media/base/pipeline.cc#oldcode107 media/base/pipeline.cc:107: CHECK(running_) << "Media pipeline isn't running"; it's now ...
8 years, 4 months ago (2012-07-28 02:26:07 UTC) #1
scherkus (not reviewing)
http://codereview.chromium.org/10828045/diff/7/media/base/pipeline.cc File media/base/pipeline.cc (right): http://codereview.chromium.org/10828045/diff/7/media/base/pipeline.cc#newcode570 media/base/pipeline.cc:570: has_audio_ = !!audio_renderer_ && !audio_disabled_; hmm... this will actually ...
8 years, 4 months ago (2012-07-28 02:31:47 UTC) #2
Ami GONE FROM CHROMIUM
I love this CL, but I have two largish comments on it. Fundamentally, I'm afraid ...
8 years, 4 months ago (2012-07-30 04:06:21 UTC) #3
acolwell GONE FROM CHROMIUM
In general I agree with most of Ami's comments. I would like to see this ...
8 years, 4 months ago (2012-07-30 18:33:10 UTC) #4
scherkus (not reviewing)
8 years, 4 months ago (2012-08-07 03:00:43 UTC) #5
As discussed last week I'm going to close this issue and break it into a few
CLs:
  - Fix flaky DCHECKs (done, see http://codereview.chromium.org/10830146/)
  - Merge states (next up!)
  - Move FFmpegDemuxer off of PipelineThread
  - Always execute Stop() for teardown
  - Misc cleanup (remove useless methods, add thread annotations, etc...)

Powered by Google App Engine
This is Rietveld 408576698