Summary: | MediaStream.ended must return true when it is created with ended tracks. | ||||||||
---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | Li Yin <li.yin> | ||||||
Component: | WebCore Misc. | Assignee: | Li Yin <li.yin> | ||||||
Status: | RESOLVED FIXED | ||||||||
Severity: | Normal | CC: | eric.carlson, feature-media-reviews, haraken, hta, jer.noble, tommyw, webkit.review.bot | ||||||
Priority: | P2 | ||||||||
Version: | 528+ (Nightly build) | ||||||||
Hardware: | All | ||||||||
OS: | All | ||||||||
Attachments: |
|
Description
Li Yin
2013-03-04 01:11:58 PST
Created attachment 191175 [details]
Patch
Comment on attachment 191175 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=191175&action=review Unofficial R+ from me. > Source/WebCore/platform/mediastream/MediaStreamDescriptor.h:114 > + m_ended = true; To the actual reviewer: The sources are filtered in Source/WebCore/Modules/mediastream/MediaStream.cpp in the function processTrack so when the execution comes to this stage all ended tracks have been ignored. > LayoutTests/fast/mediastream/MediaStreamConstructor.html:88 > + var ended = arguments[3]?arguments[3]:false; Nit: I would prefer ended to be added as a proper argument. Also spaces around the operators is the norm. Comment on attachment 191175 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=191175&action=review >> Source/WebCore/platform/mediastream/MediaStreamDescriptor.h:114 >> + m_ended = true; > > To the actual reviewer: > The sources are filtered in Source/WebCore/Modules/mediastream/MediaStream.cpp in the function processTrack so when the execution comes to this stage all ended tracks have been ignored. Can we add some ASSERT() about this? >> LayoutTests/fast/mediastream/MediaStreamConstructor.html:88 >> + var ended = arguments[3]?arguments[3]:false; > > Nit: I would prefer ended to be added as a proper argument. Also spaces around the operators is the norm. Agreed. (In reply to comment #3) > (From update of attachment 191175 [details]) > View in context: https://bugs.webkit.org/attachment.cgi?id=191175&action=review > > >> Source/WebCore/platform/mediastream/MediaStreamDescriptor.h:114 > >> + m_ended = true; > > > > To the actual reviewer: > > The sources are filtered in Source/WebCore/Modules/mediastream/MediaStream.cpp in the function processTrack so when the execution comes to this stage all ended tracks have been ignored. > > Can we add some ASSERT() about this? The ended status is not fatal to MediaStreamDescriptor object, so maybe it is not necessary to do that. > > >> LayoutTests/fast/mediastream/MediaStreamConstructor.html:88 > >> + var ended = arguments[3]?arguments[3]:false; > > > > Nit: I would prefer ended to be added as a proper argument. Also spaces around the operators is the norm. > > Agreed. I just wanted to express the default value of ended attribute. Anyway, I will fix it. Created attachment 191202 [details]
Patch
Comment on attachment 191202 [details]
Patch
OK, thank you and tommy!
Comment on attachment 191202 [details] Patch Clearing flags on attachment: 191202 Committed r144623: <http://trac.webkit.org/changeset/144623> All reviewed patches have been landed. Closing bug. |