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

Issue 10964055: Call Decryptor::Stop() in FFmpegVideoDecoder::Reset(). (Closed)

Created:
8 years, 3 months ago by xhwang
Modified:
8 years, 2 months ago
CC:
chromium-reviews, feature-media-reviews_chromium.org
Visibility:
Public.

Description

Call Decryptor::Stop() in FFmpegVideoDecoder::Reset(). To avoid freeze when user trying to seek() when a DecrptCB is pending. It also fix an issue that the stop_cb isn't fired when FFmpegVideoDecoder::Stop() is called when a DecryptCB is pending. BUG=151708 TEST=added new unittest to catch this Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158457

Patch Set 1 #

Total comments: 4

Patch Set 2 : Rename Decryptor::Stop() to Decryptor::CancelDecrypt(). #

Patch Set 3 : Rebase #

Patch Set 4 : Rebase #

Unified diffs Side-by-side diffs Delta from patch set Stats (+75 lines, -20 lines) Patch
M media/base/decryptor.h View 1 1 chunk +3 lines, -3 lines 0 comments Download
M media/base/mock_filters.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/crypto/aes_decryptor.h View 1 1 chunk +1 line, -1 line 0 comments Download
M media/crypto/aes_decryptor.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 3 chunks +10 lines, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 2 6 chunks +52 lines, -6 lines 0 comments Download
M webkit/media/crypto/ppapi_decryptor.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/crypto/ppapi_decryptor.cc View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/crypto/proxy_decryptor.h View 1 1 chunk +1 line, -1 line 0 comments Download
M webkit/media/crypto/proxy_decryptor.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download
M webkit/media/crypto/proxy_decryptor_unittest.cc View 1 1 chunk +2 lines, -2 lines 0 comments Download

Messages

Total messages: 10 (0 generated)
xhwang
To fix a bug I found by thinking. The tests added proved that. PTAL! http://codereview.chromium.org/10964055/diff/1/media/filters/ffmpeg_video_decoder.cc ...
8 years, 3 months ago (2012-09-22 01:00:49 UTC) #1
scherkus (not reviewing)
lgtm http://codereview.chromium.org/10964055/diff/1/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): http://codereview.chromium.org/10964055/diff/1/media/filters/ffmpeg_video_decoder.cc#newcode183 media/filters/ffmpeg_video_decoder.cc:183: decryptor_->Stop(); On 2012/09/22 01:00:49, xhwang wrote: > Maybe ...
8 years, 3 months ago (2012-09-23 20:01:16 UTC) #2
xhwang
http://codereview.chromium.org/10964055/diff/1/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): http://codereview.chromium.org/10964055/diff/1/media/filters/ffmpeg_video_decoder.cc#newcode183 media/filters/ffmpeg_video_decoder.cc:183: decryptor_->Stop(); On 2012/09/23 20:01:16, scherkus wrote: > On 2012/09/22 ...
8 years, 3 months ago (2012-09-24 17:27:01 UTC) #3
scherkus (not reviewing)
lgtm++ http://codereview.chromium.org/10964055/diff/1/media/filters/ffmpeg_video_decoder.cc File media/filters/ffmpeg_video_decoder.cc (right): http://codereview.chromium.org/10964055/diff/1/media/filters/ffmpeg_video_decoder.cc#newcode183 media/filters/ffmpeg_video_decoder.cc:183: decryptor_->Stop(); On 2012/09/24 17:27:01, xhwang wrote: > On ...
8 years, 3 months ago (2012-09-24 20:22:33 UTC) #4
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10964055/5001
8 years, 3 months ago (2012-09-24 21:02:14 UTC) #5
commit-bot: I haz the power
Failed to apply patch for media/filters/ffmpeg_video_decoder.cc: While running patch -p1 --forward --force; patching file media/filters/ffmpeg_video_decoder.cc ...
8 years, 3 months ago (2012-09-24 21:02:21 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10964055/14001
8 years, 3 months ago (2012-09-24 21:10:52 UTC) #7
commit-bot: I haz the power
Failed to apply patch for media/filters/ffmpeg_video_decoder.cc: While running patch -p1 --forward --force; patching file media/filters/ffmpeg_video_decoder.cc ...
8 years, 3 months ago (2012-09-24 21:10:56 UTC) #8
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10964055/16002
8 years, 3 months ago (2012-09-24 21:16:09 UTC) #9
commit-bot: I haz the power
8 years, 2 months ago (2012-09-25 00:21:46 UTC) #10
Change committed as 158457

Powered by Google App Engine
This is Rietveld 408576698