Closed Bug 890248 Opened 11 years ago Closed 11 years ago

Avoid races with PlayingRefChangedHandler

Categories

(Core :: Web Audio, defect)

x86_64
Linux
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla25
Tracking Status
firefox24 --- fixed
firefox25 --- fixed

People

(Reporter: roc, Assigned: roc)

Details

(Whiteboard: [qa-])

Attachments

(1 file)

Version: 18 Branch → Trunk
Comment on attachment 771354 [details] [diff] [review]
fix

Review of attachment 771354 [details] [diff] [review]:
-----------------------------------------------------------------

::: content/media/webaudio/ConvolverNode.h
@@ +43,5 @@
> +  {
> +    mMediaStreamGraphUpdateIndexAtLastInputConnection =
> +      mStream->Graph()->GetCurrentGraphUpdateIndex();
> +  }
> +  bool AcceptPlayingRefRelease(int64_t aLastGraphUpdateIndexProcessed)

Nit: const.

@@ +45,5 @@
> +      mStream->Graph()->GetCurrentGraphUpdateIndex();
> +  }
> +  bool AcceptPlayingRefRelease(int64_t aLastGraphUpdateIndexProcessed)
> +  {
> +    return aLastGraphUpdateIndexProcessed >= mMediaStreamGraphUpdateIndexAtLastInputConnection;

Please add a comment here explaining what this check does (for DelayNode too)
Attachment #771354 - Flags: review?(ehsan) → review+
Please land on Aurora with a=webaudio.  Thanks!
https://hg.mozilla.org/mozilla-central/rev/ed581b59499b
Status: NEW → RESOLVED
Closed: 11 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla25
Assuming no verification needed here. Please add the verifyme keyword and remove the [qa-] whiteboard tag to request verification.
Whiteboard: [qa-]
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: