Closed Bug 1047022 Opened 10 years ago Closed 10 years ago

Sort out the manual addref done in the mediarecorder code

Categories

(Core :: Audio/Video: Recording, defect)

x86
macOS
defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla34

People

(Reporter: ehsan.akhgari, Assigned: bechen)

References

Details

Attachments

(1 file, 1 obsolete file)

Follow-up to bug 1044598 comment 22. Ben, are you interested in taking this please? Thanks! :-)
Flags: needinfo?(bechen)
Sorry for late response, I'll take it, thanks.
Assignee: nobody → bechen
Flags: needinfo?(bechen)
Attached patch bug-1047022.patch (obsolete) (deleted) — Splinter Review
In order to remove the manaul addref for Session object, the patch change |nsTArray<Session*> mSessions| to |nsTArray<nsRefPtr<Session> > mSessions|. Make a cycle reference between MediaRecorder and Session. The cycle will be break at DestroyRunnable() by calling BreakCycle(). And since the Session object now is really refcounted, we can destroyed it at any thread, not main thread only.
Attachment #8472134 - Flags: review?(roc)
Attached patch bug-1047022.patch (deleted) — Splinter Review
r=roc try server: https://tbpl.mozilla.org/?tree=Try&rev=ec246a5e4f28 I will re-trigger the mochitest-3 to ensure the patch passes all tests.
Attachment #8472134 - Attachment is obsolete: true
Attachment #8474339 - Flags: review+
Keywords: checkin-needed
Status: NEW → RESOLVED
Closed: 10 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla34
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: