Closed Bug 1193117 Opened 9 years ago Closed 9 years ago

Add exclusive mode to MediaEventSource to enable Move when possible

Categories

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

defect
Not set
normal

Tracking

()

RESOLVED FIXED
mozilla43
Tracking Status
firefox43 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(1 file)

I found it useful to enable Move when there is only one listener. This allows us to pass event data which is only movable like nsAutoPtr.
I just realized Move is an optional optimization, but not mandatory. MediaEventSource can't support a type which is not copyable.
Blocks: 1194112
I find it quite a lot of work to support move-only types in exclusive mode. Spin bug 1194112 to handle that.
Bug 1193117. Add an exclusive mode to allow at most one listener.
Attachment #8647879 - Flags: review?(kinetik)
Comment on attachment 8647879 [details]
MozReview Request: Bug 1193117. Add an exclusive mode to allow at most one listener.

https://reviewboard.mozilla.org/r/16077/#review14411

Ship It!
Attachment #8647879 - Flags: review?(kinetik) → review+
Thanks for the review.
https://hg.mozilla.org/mozilla-central/rev/39172e1b1480
Assignee: nobody → jwwang
Status: NEW → RESOLVED
Closed: 9 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla43
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: