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

Issue 13813016: Remove reference counting from media::Demuxer and friends. (Closed)

Created:
7 years, 8 months ago by scherkus (not reviewing)
Modified:
7 years, 8 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org, darin-cc_chromium.org
Base URL:
http://git.chromium.org/chromium/src.git@vd_scoped
Visibility:
Public.

Description

Remove reference counting from media::Demuxer and friends. In addition: * Pipeline no longer owns the demuxer; clients are required to own it and keep it alive until Pipeline::Stop() completes. BUG=173313 Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=195437

Patch Set 1 : #

Total comments: 29

Patch Set 2 : demuxer only #

Total comments: 4

Patch Set 3 : fixes #

Patch Set 4 : rebase #

Patch Set 5 : fix tools #

Total comments: 3
Unified diffs Side-by-side diffs Delta from patch set Stats (+220 lines, -231 lines) Patch
M media/base/demuxer.h View 1 3 chunks +2 lines, -6 lines 0 comments Download
M media/base/filter_collection.h View 1 3 chunks +3 lines, -4 lines 0 comments Download
M media/base/filter_collection.cc View 1 1 chunk +3 lines, -4 lines 0 comments Download
M media/base/mock_filters.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M media/base/pipeline.h View 1 2 chunks +8 lines, -7 lines 0 comments Download
M media/base/pipeline.cc View 1 2 3 5 chunks +7 lines, -9 lines 0 comments Download
M media/base/pipeline_unittest.cc View 1 2 chunks +4 lines, -4 lines 0 comments Download
M media/filters/chunk_demuxer.h View 1 2 chunks +1 line, -3 lines 0 comments Download
M media/filters/chunk_demuxer_unittest.cc View 1 12 chunks +20 lines, -24 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 4 chunks +3 lines, -3 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 1 2 3 12 chunks +14 lines, -10 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 1 4 chunks +6 lines, -10 lines 0 comments Download
M media/filters/pipeline_integration_test.cc View 1 8 chunks +17 lines, -11 lines 0 comments Download
M media/filters/pipeline_integration_test_base.h View 1 4 chunks +3 lines, -2 lines 0 comments Download
M media/filters/pipeline_integration_test_base.cc View 1 1 chunk +7 lines, -7 lines 0 comments Download
M media/tools/demuxer_bench/demuxer_bench.cc View 1 2 3 4 3 chunks +5 lines, -6 lines 0 comments Download
M media/tools/player_x11/player_x11.cc View 1 3 chunks +5 lines, -6 lines 0 comments Download
M media/tools/seek_tester/seek_tester.cc View 1 2 3 4 1 chunk +2 lines, -3 lines 0 comments Download
M webkit/media/webmediaplayer_impl.h View 1 2 4 chunks +6 lines, -6 lines 2 comments Download
M webkit/media/webmediaplayer_impl.cc View 1 2 7 chunks +95 lines, -91 lines 1 comment Download
M webkit/media/webmediasourceclient_impl.h View 1 3 chunks +2 lines, -5 lines 0 comments Download
M webkit/media/webmediasourceclient_impl.cc View 1 1 chunk +1 line, -2 lines 0 comments Download
M webkit/media/websourcebuffer_impl.h View 1 3 chunks +4 lines, -4 lines 0 comments Download
M webkit/media/websourcebuffer_impl.cc View 1 chunk +1 line, -1 line 0 comments Download

Messages

Total messages: 12 (0 generated)
scherkus (not reviewing)
got some q's for ya https://codereview.chromium.org/13813016/diff/5001/media/base/pipeline.cc File media/base/pipeline.cc (right): https://codereview.chromium.org/13813016/diff/5001/media/base/pipeline.cc#newcode662 media/base/pipeline.cc:662: demuxer_.reset(); I'm still skeptical ...
7 years, 8 months ago (2013-04-17 17:21:59 UTC) #1
acolwell GONE FROM CHROMIUM
Here are some initial comments. I think we should split the Demuxer & DemuxerStream changes ...
7 years, 8 months ago (2013-04-17 20:24:53 UTC) #2
scherkus (not reviewing)
acolwell: PTAL (subject changed) https://codereview.chromium.org/13813016/diff/5001/media/base/filter_collection.h File media/base/filter_collection.h (right): https://codereview.chromium.org/13813016/diff/5001/media/base/filter_collection.h#newcode28 media/base/filter_collection.h:28: scoped_ptr<Demuxer> GetDemuxer(); On 2013/04/17 20:24:53, ...
7 years, 8 months ago (2013-04-19 01:07:22 UTC) #3
acolwell GONE FROM CHROMIUM
Looks pretty good to me. Just a few minor nits and waiting to see why ...
7 years, 8 months ago (2013-04-19 18:17:59 UTC) #4
acolwell GONE FROM CHROMIUM
removed 'and friends' from CL description since refcounting was only removed from Demuxer.
7 years, 8 months ago (2013-04-19 18:19:30 UTC) #5
scherkus (not reviewing)
added friends back! PTAL https://codereview.chromium.org/13813016/diff/19001/media/base/pipeline.cc File media/base/pipeline.cc (left): https://codereview.chromium.org/13813016/diff/19001/media/base/pipeline.cc#oldcode660 media/base/pipeline.cc:660: demuxer_ = NULL; On 2013/04/19 ...
7 years, 8 months ago (2013-04-19 23:18:45 UTC) #6
acolwell GONE FROM CHROMIUM
LGTM
7 years, 8 months ago (2013-04-19 23:47:15 UTC) #7
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/13813016/13030
7 years, 8 months ago (2013-04-19 23:55:57 UTC) #8
commit-bot: I haz the power
Failed to apply patch for webkit/media/webmediaplayer_impl.cc: While running patch -p1 --forward --force --no-backup-if-mismatch; patching file ...
7 years, 8 months ago (2013-04-19 23:56:03 UTC) #9
xhwang
drive-by nit https://codereview.chromium.org/13813016/diff/13030/webkit/media/webmediaplayer_impl.h File webkit/media/webmediaplayer_impl.h (right): https://codereview.chromium.org/13813016/diff/13030/webkit/media/webmediaplayer_impl.h#newcode350 webkit/media/webmediaplayer_impl.h:350: // |chunk_demuxer_| is used for Media Source ...
7 years, 8 months ago (2013-04-20 00:09:54 UTC) #10
scherkus (not reviewing)
https://codereview.chromium.org/13813016/diff/13030/webkit/media/webmediaplayer_impl.h File webkit/media/webmediaplayer_impl.h (right): https://codereview.chromium.org/13813016/diff/13030/webkit/media/webmediaplayer_impl.h#newcode350 webkit/media/webmediaplayer_impl.h:350: // |chunk_demuxer_| is used for Media Source resource loads. ...
7 years, 8 months ago (2013-04-22 04:02:07 UTC) #11
scherkus (not reviewing)
7 years, 8 months ago (2013-04-22 04:03:44 UTC) #12
Message was sent while issue was closed.
Committed patchset #5 manually as r195437 (presubmit successful).

Powered by Google App Engine
This is Rietveld 408576698