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

Issue 1067153002: Set audible status to false if audio is stopped after prefetch. (Closed)

Created:
5 years, 8 months ago by Tima Vaisburd
Modified:
5 years, 7 months ago
Reviewers:
qinmin, timav
CC:
chromium-reviews, posciak+watch_chromium.org, feature-media-reviews_chromium.org, avayvod+watch_chromium.org, wjia+watch_chromium.org, mcasas+watch_chromium.org
Base URL:
https://chromium.googlesource.com/chromium/src.git@master
Target Ref:
refs/pending/heads/master
Project:
chromium
Visibility:
Public.

Description

Set audible status to false if audio is stopped after prefetch. We discovered an audio playing site that often triggers the starvation condition during the playback. This introduces a race between Pause , starvation detecton and the MediaDecoderCallback. If starvation detection happens between Pause and the callback, we will do Prefetch and then stop the flow of packets, and won't update the audible status properly. This fix sets the audible status to false in Pause() and this avoids the issue. BUG=474761 Committed: https://crrev.com/9bf805c15752621d68d562f2acfa3e71f98f5593 Cr-Commit-Position: refs/heads/master@{#327336}

Patch Set 1 #

Total comments: 2

Patch Set 2 : Set audible status on Pause() instead #

Unified diffs Side-by-side diffs Delta from patch set Stats (+2 lines, -0 lines) Patch
M media/base/android/media_source_player.cc View 1 1 chunk +2 lines, -0 lines 0 comments Download

Messages

Total messages: 10 (2 generated)
timav
Please review.
5 years, 8 months ago (2015-04-07 22:18:08 UTC) #2
qinmin
https://codereview.chromium.org/1067153002/diff/1/media/base/android/media_source_player.cc File media/base/android/media_source_player.cc (right): https://codereview.chromium.org/1067153002/diff/1/media/base/android/media_source_player.cc#newcode501 media/base/android/media_source_player.cc:501: if (is_audio) how about move this to line 485 ...
5 years, 8 months ago (2015-04-14 02:55:11 UTC) #3
timav
https://codereview.chromium.org/1067153002/diff/1/media/base/android/media_source_player.cc File media/base/android/media_source_player.cc (right): https://codereview.chromium.org/1067153002/diff/1/media/base/android/media_source_player.cc#newcode501 media/base/android/media_source_player.cc:501: if (is_audio) On 2015/04/14 02:55:10, qinmin wrote: > how ...
5 years, 8 months ago (2015-04-28 02:17:55 UTC) #4
timav
5 years, 8 months ago (2015-04-28 02:39:42 UTC) #5
qinmin
lgtm
5 years, 7 months ago (2015-04-28 16:12:24 UTC) #6
commit-bot: I haz the power
CQ is trying da patch. Follow status at https://chromium-cq-status.appspot.com/patch-status/1067153002/20001
5 years, 7 months ago (2015-04-28 17:42:52 UTC) #8
commit-bot: I haz the power
Committed patchset #2 (id:20001)
5 years, 7 months ago (2015-04-28 18:36:10 UTC) #9
commit-bot: I haz the power
5 years, 7 months ago (2015-04-28 18:36:59 UTC) #10
Message was sent while issue was closed.
Patchset 2 (id:??) landed as
https://crrev.com/9bf805c15752621d68d562f2acfa3e71f98f5593
Cr-Commit-Position: refs/heads/master@{#327336}

Powered by Google App Engine
This is Rietveld 408576698