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

Issue 165023: Renderer busy looping after video (with sound) or audio ends (Closed)

Created:
11 years, 4 months ago by Alpha Left Google
Modified:
9 years, 6 months ago
CC:
chromium-reviews_googlegroups.com, kylep
Visibility:
Public.

Description

Renderer busy looping after video (with sound) or audio ends BUG=18434 TEST=AudioRendererBaseTest.CompleteLifeTime This patch fixes the busy looping and leaks by ignore the end-of-stream packet. Committed: http://src.chromium.org/viewvc/chrome?view=rev&revision=22654

Patch Set 1 #

Total comments: 7

Patch Set 2 : again #

Patch Set 3 : renamed #

Patch Set 4 : rename #

Unified diffs Side-by-side diffs Delta from patch set Stats (+76 lines, -2 lines) Patch
M media/filters/audio_renderer_base.cc View 1 chunk +5 lines, -2 lines 0 comments Download
M media/filters/audio_renderer_base_unittest.cc View 1 2 3 3 chunks +71 lines, -0 lines 0 comments Download

Messages

Total messages: 13 (0 generated)
Alpha Left Google
See more details about the cause of this bug: http://code.google.com/p/chromium/issues/detail?id=18434 I'm so sad to see ...
11 years, 4 months ago (2009-08-06 00:47:09 UTC) #1
Alpha Left Google
+fbarchard +kylep
11 years, 4 months ago (2009-08-06 00:49:13 UTC) #2
scherkus (not reviewing)
LGTM we'll need to fix that demuxer so that it generates "ended" packets only when ...
11 years, 4 months ago (2009-08-06 03:51:52 UTC) #3
fbarchard
LGTM http://codereview.chromium.org/165023/diff/1/2 File media/filters/audio_renderer_base.cc (right): http://codereview.chromium.org/165023/diff/1/2#newcode124 Line 124: if (!buffer_in->IsEndOfStream()) { you check eof twice. ...
11 years, 4 months ago (2009-08-06 05:28:13 UTC) #4
kylep
This might actually be more easily fixed in AudioRendererAlgorithmBase::EnqueueBuffer On Wed, Aug 5, 2009 at ...
11 years, 4 months ago (2009-08-06 06:27:23 UTC) #5
Alpha Left Google
On 2009/08/06 05:28:13, fbarchard wrote: > LGTM > > http://codereview.chromium.org/165023/diff/1/2 > File media/filters/audio_renderer_base.cc (right): > ...
11 years, 4 months ago (2009-08-06 07:14:56 UTC) #6
Alpha Left Google
On 2009/08/06 06:27:23, kylep wrote: > This might actually be more easily fixed in > ...
11 years, 4 months ago (2009-08-06 07:17:39 UTC) #7
Alpha Left Google
On 2009/08/06 03:51:52, scherkus wrote: > LGTM > > we'll need to fix that demuxer ...
11 years, 4 months ago (2009-08-06 07:20:08 UTC) #8
awong
LGTM after addressing other comments. Also, please pick a nicer name before checking for the ...
11 years, 4 months ago (2009-08-06 18:37:46 UTC) #9
Alpha Left Google
http://codereview.chromium.org/165023/diff/1/2 File media/filters/audio_renderer_base.cc (right): http://codereview.chromium.org/165023/diff/1/2#newcode124 Line 124: if (!buffer_in->IsEndOfStream()) { On 2009/08/06 18:37:46, awong wrote: ...
11 years, 4 months ago (2009-08-06 19:02:27 UTC) #10
awong
http://codereview.chromium.org/165023/diff/1/3 File media/filters/audio_renderer_base_unittest.cc (right): http://codereview.chromium.org/165023/diff/1/3#newcode147 Line 147: TEST_F(AudioRendererBaseTest, CompleteLifetime) { On 2009/08/06 19:02:28, Alpha wrote: ...
11 years, 4 months ago (2009-08-06 19:07:23 UTC) #11
Alpha Left Google
On 2009/08/06 19:07:23, awong wrote: > http://codereview.chromium.org/165023/diff/1/3 > File media/filters/audio_renderer_base_unittest.cc (right): > > http://codereview.chromium.org/165023/diff/1/3#newcode147 > ...
11 years, 4 months ago (2009-08-06 19:11:34 UTC) #12
awong
11 years, 4 months ago (2009-08-06 19:22:59 UTC) #13
On Thu, Aug 6, 2009 at 12:11 PM, <hclam@chromium.org> wrote:

> On 2009/08/06 19:07:23, awong wrote:
>
>> http://codereview.chromium.org/165023/diff/1/3
>> File media/filters/audio_renderer_base_unittest.cc (right):
>>
>
>  http://codereview.chromium.org/165023/diff/1/3#newcode147
>> Line 147: TEST_F(AudioRendererBaseTest, CompleteLifetime) {
>> On 2009/08/06 19:02:28, Alpha wrote:
>> > On 2009/08/06 18:37:46, awong wrote:
>> > > I don't undersatnd this testname.  Waht does "CompleteLifetime"
>>
> mean?
>
>> >
>> > What about CompleteReadCycle? I suck at naming things.. :(
>>
>
>  Yeah, naming is hard.  I guess one way to do it is to put it in a
>>
> sentence like
>
>> "When this passes, we know that X works".
>>
>
>  You're executing one read cycle right?  So, maybe call it
>>
> "OneReadCycle"?
>
> Not really one read cycle. This actually simulates a complete cycle of
> pre-rolling, fetching from buffer and then receiving an end-of-stream
> packet. So I feel like CompleteReadCycle is better?


OneCompleteReadCycle might be nicer.  CompleteReadCycle's problem is that it
parses two was.  It either means "a full compelte cycle" or "the event of
the cycle finishing."

Powered by Google App Engine
This is Rietveld 408576698