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

Issue 11410052: Refactor FFmpegURLProtocol code from FFmpegDemuxer into BlockingUrlProtocol. (Closed)

Created:
8 years, 1 month ago by scherkus (not reviewing)
Modified:
8 years, 1 month ago
Reviewers:
DaleCurtis
CC:
chromium-reviews, feature-media-reviews_chromium.org, rbultje1
Visibility:
Public.

Description

Refactor FFmpegURLProtocol code from FFmpegDemuxer into BlockingUrlProtocol. I cleaned up some comments and surrounding test code in FFmpegDemuxer and FileDataSource as well. There'll be some more clean up after I get this landed. BUG=160640 TEST=FFmpegDemuxer and BlockingUrlProtocol tests Committed: https://src.chromium.org/viewvc/chrome?view=rev&revision=167462

Patch Set 1 #

Patch Set 2 : #

Total comments: 12

Patch Set 3 : nits #

Patch Set 4 : rebase #

Patch Set 5 : url #

Patch Set 6 : fix android #

Total comments: 2
Unified diffs Side-by-side diffs Delta from patch set Stats (+332 lines, -224 lines) Patch
A media/filters/blocking_url_protocol.h View 1 2 3 4 1 chunk +73 lines, -0 lines 0 comments Download
A media/filters/blocking_url_protocol.cc View 1 1 chunk +87 lines, -0 lines 2 comments Download
A media/filters/blocking_url_protocol_unittest.cc View 1 chunk +127 lines, -0 lines 0 comments Download
M media/filters/ffmpeg_demuxer.h View 1 2 3 4 7 chunks +7 lines, -28 lines 0 comments Download
M media/filters/ffmpeg_demuxer.cc View 7 chunks +13 lines, -86 lines 0 comments Download
M media/filters/ffmpeg_demuxer_unittest.cc View 6 chunks +5 lines, -89 lines 0 comments Download
M media/filters/file_data_source.h View 1 2 3 4 5 4 chunks +8 lines, -11 lines 0 comments Download
M media/filters/file_data_source.cc View 1 2 3 chunks +6 lines, -10 lines 0 comments Download
M media/media.gyp View 1 2 3 4 5 4 chunks +6 lines, -0 lines 0 comments Download

Messages

Total messages: 9 (0 generated)
scherkus (not reviewing)
dalecurtis: you are the lucky person who has happened to touch this url protocol business ...
8 years, 1 month ago (2012-11-13 00:22:02 UTC) #1
DaleCurtis
lgtm % nits and nice to haves. http://codereview.chromium.org/11410052/diff/2001/media/filters/blocking_url_protocol.cc File media/filters/blocking_url_protocol.cc (right): http://codereview.chromium.org/11410052/diff/2001/media/filters/blocking_url_protocol.cc#newcode35 media/filters/blocking_url_protocol.cc:35: // Even ...
8 years, 1 month ago (2012-11-13 03:42:28 UTC) #2
rbultje
Hi, On 2012/11/13 03:42:28, DaleCurtis wrote: > http://codereview.chromium.org/11410052/diff/2001/media/filters/blocking_url_protocol.cc#newcode35 > media/filters/blocking_url_protocol.cc:35: // Even though FFmpeg defines ...
8 years, 1 month ago (2012-11-13 03:52:17 UTC) #3
scherkus (not reviewing)
thanks! http://codereview.chromium.org/11410052/diff/2001/media/filters/blocking_url_protocol.h File media/filters/blocking_url_protocol.h (right): http://codereview.chromium.org/11410052/diff/2001/media/filters/blocking_url_protocol.h#newcode10 media/filters/blocking_url_protocol.h:10: #include "base/compiler_specific.h" On 2012/11/13 03:42:28, DaleCurtis wrote: > ...
8 years, 1 month ago (2012-11-13 18:19:13 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/11410052/21
8 years, 1 month ago (2012-11-13 18:19:26 UTC) #5
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/scherkus@chromium.org/11410052/6003
8 years, 1 month ago (2012-11-13 18:28:12 UTC) #6
commit-bot: I haz the power
Sorry for I got bad news for ya. Compile failed with a clobber build on ...
8 years, 1 month ago (2012-11-13 18:45:10 UTC) #7
DaleCurtis
https://chromiumcodereview.appspot.com/11410052/diff/2001/media/filters/blocking_url_protocol.h File media/filters/blocking_url_protocol.h (right): https://chromiumcodereview.appspot.com/11410052/diff/2001/media/filters/blocking_url_protocol.h#newcode21 media/filters/blocking_url_protocol.h:21: // TODO(scherkus): Should be more thread-safe and use ConditionVariable+Lock ...
8 years, 1 month ago (2012-11-13 21:44:07 UTC) #8
scherkus (not reviewing)
8 years, 1 month ago (2012-11-13 21:56:13 UTC) #9
https://chromiumcodereview.appspot.com/11410052/diff/6003/media/filters/block...
File media/filters/blocking_url_protocol.cc (right):

https://chromiumcodereview.appspot.com/11410052/diff/6003/media/filters/block...
media/filters/blocking_url_protocol.cc:43: data_source_->Read(read_position_,
size, data, base::Bind(
On 2012/11/13 21:44:07, DaleCurtis wrote:
> I goofed here and misunderstood your original comment on this and didn't
realize
> last_read_bytes_ was actually getting written by multiple threads.
> 
> Why not instead use a global abort event plus a stack allocated waitable event
> and last_read_bytes value bound into the callback?  You can then use
WaitMany()
> to listen for either one to fire and take the appropriate action.

I have a queue of CLs. Sounds like you're ready to review the next one :)

http://codereview.chromium.org/11360237/

Powered by Google App Engine
This is Rietveld 408576698