Summary: | Add support for RTCRtpScriptTransform | ||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
Product: | WebKit | Reporter: | youenn fablet <youennf> | ||||||||||||||||
Component: | WebRTC | Assignee: | youenn fablet <youennf> | ||||||||||||||||
Status: | RESOLVED FIXED | ||||||||||||||||||
Severity: | Normal | CC: | annulen, benjamin, calvaris, cdumez, eric.carlson, esprehn+autocc, ews-watchlist, glenn, gyuyoung.kim, hta, jer.noble, kangil.han, kondapallykalyan, philipj, ryuan.choi, sergio, tommyw, webkit-bug-importer, youennf | ||||||||||||||||
Priority: | P2 | Keywords: | InRadar | ||||||||||||||||
Version: | WebKit Local Build | ||||||||||||||||||
Hardware: | Unspecified | ||||||||||||||||||
OS: | Unspecified | ||||||||||||||||||
Attachments: |
|
Description
youenn fablet
2020-11-19 00:27:12 PST
Created attachment 414553 [details]
Patch
Created attachment 414556 [details]
Patch
Created attachment 414557 [details]
Patch
Created attachment 414559 [details]
Patch
Created attachment 414560 [details]
Patch
Created attachment 414564 [details]
Patch
Comment on attachment 414564 [details] Patch View in context: https://bugs.webkit.org/attachment.cgi?id=414564&action=review > Source/WebCore/Modules/mediastream/RTCRtpScriptTransform.cpp:117 > + m_backend = makeRef(backend); You only set `m_backend` if `setupTransformer` fails? > Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp:174 > + auto value = isAudio ? toJS(&globalObject, &globalObject, RTCEncodedAudioFrame::create(WTFMove(frame))) : toJS(&globalObject, &globalObject, RTCEncodedAudioFrame::create(WTFMove(frame))); Don’t you want to create a Video frame when `isAudio` is false? (In reply to Eric Carlson from comment #7) > Comment on attachment 414564 [details] > Patch > > View in context: > https://bugs.webkit.org/attachment.cgi?id=414564&action=review > > > Source/WebCore/Modules/mediastream/RTCRtpScriptTransform.cpp:117 > > + m_backend = makeRef(backend); > > You only set `m_backend` if `setupTransformer` fails? Yes, it means the transformer is not yet there but will be soon. So we keep a ref to m_backend so that we can call setupTransformer at the time the transformer is hooked to its transform. > > Source/WebCore/Modules/mediastream/RTCRtpScriptTransformer.cpp:174 > > + auto value = isAudio ? toJS(&globalObject, &globalObject, RTCEncodedAudioFrame::create(WTFMove(frame))) : toJS(&globalObject, &globalObject, RTCEncodedAudioFrame::create(WTFMove(frame))); > > Don’t you want to create a Video frame when `isAudio` is false? Good catch, will add a test for it. Created attachment 414659 [details]
Patch for landing
Committed r270107: <https://trac.webkit.org/changeset/270107> All reviewed patches have been landed. Closing bug and clearing flags on attachment 414659 [details]. |