RESOLVED FIXED 121562
[MSE] Implement support for SourceBuffer.remove()
https://bugs.webkit.org/show_bug.cgi?id=121562
Summary [MSE] Implement support for SourceBuffer.remove()
Jer Noble
Reported 2013-09-18 11:23:58 PDT
[MSE] Implement support for SourceBuffer.remove()
Attachments
Patch (22.54 KB, patch)
2013-09-18 11:29 PDT, Jer Noble
no flags
Patch (16.02 KB, patch)
2014-03-28 11:25 PDT, Jer Noble
no flags
Jer Noble
Comment 1 2013-09-18 11:29:56 PDT
Eric Carlson
Comment 2 2013-11-05 13:55:45 PST
Comment on attachment 212007 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=212007&action=review > Source/WebCore/Modules/mediasource/SourceBuffer.cpp:112 > + // FIXME: Add step 6 text when mode attribute is implemented. Nit: bug number? > Source/WebCore/Modules/mediasource/SourceBuffer.cpp:170 > +void SourceBuffer::remove(double start, double end, ExceptionState& es) I think this merge was a bit too automatic ;-). Don't you mean: void SourceBuffer::remove(double start, double end, ExceptionCode& ec) > Source/WebCore/Modules/mediasource/SourceBuffer.cpp:176 > + es.throwDOMException(InvalidAccessError); ec = INVALID_ACCESS_ERR; > Source/WebCore/Modules/mediasource/SourceBuffer.cpp:184 > + es.throwDOMException(InvalidStateError); ec = INVALID_STATE_ERR;
Radar WebKit Bug Importer
Comment 3 2014-03-24 14:19:43 PDT
Jon Lee
Comment 4 2014-03-25 09:32:26 PDT
ping?
Jer Noble
Comment 5 2014-03-28 11:25:30 PDT
Created attachment 228072 [details] Patch Clearing r+ flag; new patch is significantly different enough from previous patch to warrant re-review.
Eric Carlson
Comment 6 2014-03-28 11:34:50 PDT
Comment on attachment 228072 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=228072&action=review > Source/WebCore/Modules/mediasource/SourceBuffer.cpp:246 > + m_source->openIfInEndedState(); You NULL check m_source above, do you need to so so here as well?
Jer Noble
Comment 7 2014-03-28 12:39:50 PDT
Comment on attachment 228072 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=228072&action=review >> Source/WebCore/Modules/mediasource/SourceBuffer.cpp:246 >> + if (isRemoved() || m_updating) { >> + ec = INVALID_ACCESS_ERR; >> + return; >> + } >> + >> + // 5. If the readyState attribute of the parent media source is in the "ended" state then run the following steps: >> + // 5.1. Set the readyState attribute of the parent media source to "open" >> + // 5.2. Queue a task to fire a simple event named sourceopen at the parent media source . >> + m_source->openIfInEndedState(); > > You NULL check m_source above, do you need to so so here as well? No, the isRemoved() statement above is effectively a NULL check.
WebKit Commit Bot
Comment 8 2014-03-28 13:09:16 PDT
Comment on attachment 228072 [details] Patch Clearing flags on attachment: 228072 Committed r166423: <http://trac.webkit.org/changeset/166423>
WebKit Commit Bot
Comment 9 2014-03-28 13:09:22 PDT
All reviewed patches have been landed. Closing bug.
Note You need to log in before you can comment on or make changes to this bug.