WebKit Bugzilla
New
Browse
Search+
Log In
×
Sign in with GitHub
or
Remember my login
Create Account
·
Forgot Password
Forgotten password account recovery
RESOLVED FIXED
209919
Don't call -[AVCapture startRunning] when interruption ends
https://bugs.webkit.org/show_bug.cgi?id=209919
Summary
Don't call -[AVCapture startRunning] when interruption ends
Eric Carlson
Reported
2020-04-02 12:19:47 PDT
Don't call -[AVCapture startRunning] when interruption ends
Attachments
Patch
(3.02 KB, patch)
2020-04-02 12:44 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Patch for landing
(7.67 KB, patch)
2020-04-02 14:52 PDT
,
Eric Carlson
no flags
Details
Formatted Diff
Diff
Show Obsolete
(1)
View All
Add attachment
proposed patch, testcase, etc.
Eric Carlson
Comment 1
2020-04-02 12:20:19 PDT
<
rdar://problem/61090625
>
Eric Carlson
Comment 2
2020-04-02 12:44:52 PDT
Created
attachment 395288
[details]
Patch
youenn fablet
Comment 3
2020-04-02 13:14:41 PDT
Comment on
attachment 395288
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=395288&action=review
> Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:623 > m_interruption = InterruptionReason::None;
Maybe we could switch m_interruption to "boolean m_interrupted"?
> Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:698 > + if (!willChange && m_callback->loggerPtr() && m_callback->logger().willLog(m_callback->logChannel(), WTFLogLevel::Always)) {
Why !willChange? I would think could write it as if (willChange) or maybe if(isChanging). Should we return early if wilChange is true?
Eric Carlson
Comment 4
2020-04-02 14:52:29 PDT
Created
attachment 395305
[details]
Patch for landing
Eric Carlson
Comment 5
2020-04-02 15:30:45 PDT
Comment on
attachment 395288
[details]
Patch View in context:
https://bugs.webkit.org/attachment.cgi?id=395288&action=review
>> Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:623 >> m_interruption = InterruptionReason::None; > > Maybe we could switch m_interruption to "boolean m_interrupted"?
Good idea, fixed.
>> Source/WebCore/platform/mediastream/mac/AVVideoCaptureSource.mm:698 >> + if (!willChange && m_callback->loggerPtr() && m_callback->logger().willLog(m_callback->logChannel(), WTFLogLevel::Always)) { > > Why !willChange? > I would think could write it as if (willChange) or maybe if(isChanging). > > Should we return early if wilChange is true?
Also a good idea, also fixed.
EWS
Comment 6
2020-04-02 17:14:03 PDT
Committed
r259430
: <
https://trac.webkit.org/changeset/259430
> All reviewed patches have been landed. Closing bug and clearing flags on
attachment 395305
[details]
.
Note
You need to
log in
before you can comment on or make changes to this bug.
Top of Page
Format For Printing
XML
Clone This Bug