Bug 221200

Summary: Only update IPC connection of RemoteCaptureSampleManager for audio sources
Product: WebKit Reporter: youenn fablet <youennf>
Component: WebRTCAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: eric.carlson, ews-watchlist, glenn, jer.noble, philipj, sergio, webkit-bug-importer, youennf
Priority: P2 Keywords: InRadar
Version: WebKit Local Build   
Hardware: Unspecified   
OS: Unspecified   
Attachments:
Description Flags
Patch
none
Patch for landing none

Description youenn fablet 2021-02-01 05:17:24 PST
Only update IPC connection of RemoteCaptureSampleManager for audio sources
Comment 1 youenn fablet 2021-02-01 05:18:49 PST
Created attachment 418861 [details]
Patch
Comment 2 Eric Carlson 2021-02-01 09:13:08 PST
Comment on attachment 418861 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=418861&action=review

> Source/WebKit/WebProcess/cocoa/UserMediaCaptureManager.cpp:201
>  void UserMediaCaptureManager::didUpdateSourceConnection(RemoteRealtimeMediaSource& source)
>  {
> -    m_remoteCaptureSampleManager.didUpdateSourceConnection(source);
> +    if (source.type() == RealtimeMediaSource::Type::Audio)
> +        m_remoteCaptureSampleManager.didUpdateSourceConnection(source);
>  }

It isn't clear why this should be for audio only. Should the method be renamed, or at least add a comment explaining why this is?
Comment 3 youenn fablet 2021-02-02 02:03:33 PST
Comment on attachment 418861 [details]
Patch

View in context: https://bugs.webkit.org/attachment.cgi?id=418861&action=review

>> Source/WebKit/WebProcess/cocoa/UserMediaCaptureManager.cpp:201
>>  }
> 
> It isn't clear why this should be for audio only. Should the method be renamed, or at least add a comment explaining why this is?

Right, let's rename m_remoteCaptureSampleManager to m_remoteAudioCaptureSampleManager.
Comment 4 youenn fablet 2021-02-02 02:06:01 PST
Created attachment 418974 [details]
Patch for landing
Comment 5 EWS 2021-02-02 02:56:23 PST
commit-queue failed to commit attachment 418974 [details] to WebKit repository.
Comment 6 EWS 2021-02-02 03:12:02 PST
commit-queue failed to commit attachment 418974 [details] to WebKit repository.
Comment 7 EWS 2021-02-02 04:12:10 PST
Committed r272205: <https://trac.webkit.org/changeset/272205>

All reviewed patches have been landed. Closing bug and clearing flags on attachment 418974 [details].
Comment 8 Radar WebKit Bug Importer 2021-02-02 04:13:13 PST
<rdar://problem/73874360>