Bug 171824

Summary: Follow-up to bug 171710: use more references and reject if either audio or video source creation is failing
Product: WebKit Reporter: youenn fablet <youennf>
Component: MediaAssignee: youenn fablet <youennf>
Status: RESOLVED FIXED    
Severity: Normal CC: achristensen, commit-queue, eric.carlson, jer.noble, jonlee, webkit-bug-importer
Priority: P2 Keywords: InRadar
Version: WebKit Nightly Build   
Hardware: Unspecified   
OS: Unspecified   
Bug Depends on:    
Bug Blocks: 171849    
Attachments:
Description Flags
Patch
none
Trying to fix GTK build
none
Trying to fix GTK build 2
none
Patch for landing none

Description youenn fablet 2017-05-08 13:27:37 PDT
Follow-up to bug 171710: use more references and reject if either audio or video source creation is failing
Comment 1 youenn fablet 2017-05-08 13:31:26 PDT
Created attachment 309406 [details]
Patch
Comment 2 Radar WebKit Bug Importer 2017-05-08 14:02:57 PDT
<rdar://problem/32058957>
Comment 3 Eric Carlson 2017-05-08 14:18:41 PDT
Comment on attachment 309406 [details]
Patch

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

> Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.h:59
> +        Vector<CaptureDevice> m_devices;

Where is this initialized?
Comment 4 youenn fablet 2017-05-08 14:23:10 PDT
Comment on attachment 309406 [details]
Patch

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

>> Source/WebCore/platform/mock/MockRealtimeMediaSourceCenter.h:59
>> +        Vector<CaptureDevice> m_devices;
> 
> Where is this initialized?

It is empty currently.
We should probably add mock values and use them within tests.
Comment 5 youenn fablet 2017-05-08 15:56:57 PDT
Created attachment 309423 [details]
Trying to fix GTK build
Comment 6 youenn fablet 2017-05-08 16:25:11 PDT
Created attachment 309437 [details]
Trying to fix GTK build 2
Comment 7 Alex Christensen 2017-05-08 20:09:21 PDT
Comment on attachment 309437 [details]
Trying to fix GTK build 2

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

> Source/WebCore/platform/mediastream/RealtimeMediaSourceCenter.cpp:83
> +    return m_audioFactory ? *m_audioFactory: defaultAudioFactory();

space before colon
Comment 8 youenn fablet 2017-05-08 21:33:55 PDT
Created attachment 309466 [details]
Patch for landing
Comment 9 WebKit Commit Bot 2017-05-08 22:14:35 PDT
Comment on attachment 309466 [details]
Patch for landing

Clearing flags on attachment: 309466

Committed r216477: <http://trac.webkit.org/changeset/216477>
Comment 10 WebKit Commit Bot 2017-05-08 22:14:37 PDT
All reviewed patches have been landed.  Closing bug.