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

Issue 10990039: Enforce Stop() is always called before dtor in FFmepgVideoDecoder. (Closed)

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

Description

Enforce Stop() is always called before dtor in FFmepgVideoDecoder. Enforce this because Stop() needs to do some shutdown work asynchronously. - Updated comments in VideoDecoder interface. - Added DCHECK in dtor. - Updated FFmpegVideoDecoderTest to call Stop() in dtor. BUG=93932, 152262 TEST=Updated media_unittest Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=158931

Patch Set 1 #

Total comments: 11

Patch Set 2 : Resolved comments. #

Patch Set 3 : Updating comments on VideoDecoder #

Patch Set 4 : check more in dtor #

Total comments: 1
Unified diffs Side-by-side diffs Delta from patch set Stats (+53 lines, -35 lines) Patch
M media/base/video_decoder.h View 1 2 2 chunks +9 lines, -6 lines 0 comments Download
M media/filters/ffmpeg_video_decoder.h View 1 chunk +1 line, -1 line 0 comments Download
M media/filters/ffmpeg_video_decoder.cc View 1 2 3 3 chunks +11 lines, -5 lines 0 comments Download
M media/filters/ffmpeg_video_decoder_unittest.cc View 1 11 chunks +32 lines, -23 lines 1 comment Download

Messages

Total messages: 14 (0 generated)
xhwang
As discussed offline. PTAL!
8 years, 2 months ago (2012-09-25 20:50:54 UTC) #1
scherkus (not reviewing)
http://codereview.chromium.org/10990039/diff/1/media/base/video_decoder.h File media/base/video_decoder.h (right): http://codereview.chromium.org/10990039/diff/1/media/base/video_decoder.h#newcode60 media/base/video_decoder.h:60: // If the VideoDecoder has been initialized, Stop() must ...
8 years, 2 months ago (2012-09-25 20:58:16 UTC) #2
scherkus (not reviewing)
...but LGTM w/ those nits
8 years, 2 months ago (2012-09-25 20:58:30 UTC) #3
Ami GONE FROM CHROMIUM
drive-by http://codereview.chromium.org/10990039/diff/1/media/base/video_decoder.h File media/base/video_decoder.h (right): http://codereview.chromium.org/10990039/diff/1/media/base/video_decoder.h#newcode60 media/base/video_decoder.h:60: // If the VideoDecoder has been initialized, Stop() ...
8 years, 2 months ago (2012-09-25 21:18:26 UTC) #4
scherkus (not reviewing)
+1 to fischman On Sep 25, 2012 2:18 PM, <fischman@chromium.org> wrote: > drive-by > > ...
8 years, 2 months ago (2012-09-25 21:36:00 UTC) #5
xhwang
On 2012/09/25 21:36:00, scherkus wrote: > +1 to fischman > On Sep 25, 2012 2:18 ...
8 years, 2 months ago (2012-09-25 21:42:31 UTC) #6
Ami GONE FROM CHROMIUM
> Do we want to call Stop() if Initialize() failed? Shouldn't the caller know if ...
8 years, 2 months ago (2012-09-25 22:23:56 UTC) #7
xhwang
On 2012/09/25 22:23:56, Ami Fischman wrote: > > Do we want to call Stop() if ...
8 years, 2 months ago (2012-09-26 01:09:21 UTC) #8
xhwang
http://codereview.chromium.org/10990039/diff/1/media/base/video_decoder.h File media/base/video_decoder.h (right): http://codereview.chromium.org/10990039/diff/1/media/base/video_decoder.h#newcode60 media/base/video_decoder.h:60: // If the VideoDecoder has been initialized, Stop() must ...
8 years, 2 months ago (2012-09-26 01:09:58 UTC) #9
xhwang
Added more checks in the dtor. PTAL!
8 years, 2 months ago (2012-09-26 01:25:30 UTC) #10
scherkus (not reviewing)
lgtm++ w/ nits http://codereview.chromium.org/10990039/diff/4002/media/filters/ffmpeg_video_decoder_unittest.cc File media/filters/ffmpeg_video_decoder_unittest.cc (right): http://codereview.chromium.org/10990039/diff/4002/media/filters/ffmpeg_video_decoder_unittest.cc#newcode144 media/filters/ffmpeg_video_decoder_unittest.cc:144: EXPECT_CALL(*decryptor_, CancelDecrypt()) hmm... can we set ...
8 years, 2 months ago (2012-09-26 05:20:01 UTC) #11
xhwang
On 2012/09/26 05:20:01, scherkus wrote: > lgtm++ w/ nits > > http://codereview.chromium.org/10990039/diff/4002/media/filters/ffmpeg_video_decoder_unittest.cc > File media/filters/ffmpeg_video_decoder_unittest.cc ...
8 years, 2 months ago (2012-09-26 17:53:38 UTC) #12
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-status.appspot.com/cq/xhwang@chromium.org/10990039/4002
8 years, 2 months ago (2012-09-26 21:29:30 UTC) #13
commit-bot: I haz the power
8 years, 2 months ago (2012-09-26 23:42:02 UTC) #14
Change committed as 158931

Powered by Google App Engine
This is Rietveld 408576698