Closed Bug 1415069 Opened 7 years ago Closed 7 years ago

Add a member to ChannelMediaResource to remember seekability of the channel

Categories

(Core :: Audio/Video: Playback, enhancement, P3)

enhancement

Tracking

()

RESOLVED FIXED
mozilla58
Tracking Status
firefox58 --- fixed

People

(Reporter: jwwang, Assigned: jwwang)

References

Details

Attachments

(1 file)

So it doesn't need to call mCacheStream.IsTransportSeekable() which needs to take the lock and might block the main thread.
Assignee: nobody → jwwang
Blocks: 1369263
Priority: -- → P3
Attachment #8926740 - Flags: review?(bechen)
Comment on attachment 8926740 [details]
Bug 1415069 - Add a member to ChannelMediaResource to remember seekability of the channel.

https://reviewboard.mozilla.org/r/197982/#review203164

::: dom/media/ChannelMediaResource.cpp:297
(Diff revision 1)
>    // This is important, we want to make sure all principals are updated before
>    // any consumer can see the new data.
>    UpdatePrincipal();
>  
>    mCacheStream.NotifyDataStarted(mLoadID, startOffset, seekable);
> +  mIsTransportSeekable = seekable;

Do we need to set the mIsTransportSeekable in ChannelMediaResource::CloneData() for the clone case?
Attachment #8926740 - Flags: review?(bechen) → review+
Comment on attachment 8926740 [details]
Bug 1415069 - Add a member to ChannelMediaResource to remember seekability of the channel.

https://reviewboard.mozilla.org/r/197982/#review203164

> Do we need to set the mIsTransportSeekable in ChannelMediaResource::CloneData() for the clone case?

Yes. Good catch!
Attachment #8926740 - Flags: review?(gsquelart)
Comment on attachment 8926740 [details]
Bug 1415069 - Add a member to ChannelMediaResource to remember seekability of the channel.

https://reviewboard.mozilla.org/r/197982/#review203170
Attachment #8926740 - Flags: review?(gsquelart) → review+
Thanks for the reviews!
Pushed by jwwang@mozilla.com:
https://hg.mozilla.org/integration/autoland/rev/2f059a9dbd9d
Add a member to ChannelMediaResource to remember seekability of the channel. r=bechen,gerald
https://hg.mozilla.org/mozilla-central/rev/2f059a9dbd9d
Status: NEW → RESOLVED
Closed: 7 years ago
Resolution: --- → FIXED
Target Milestone: --- → mozilla58
You need to log in before you can comment on or make changes to this bug.

Attachment

General

Created:
Updated:
Size: