ASSIGNED170605
[MediaStream iOS] Update muted state when interrupted
https://bugs.webkit.org/show_bug.cgi?id=170605
Summary [MediaStream iOS] Update muted state when interrupted
Eric Carlson
Reported 2017-04-07 10:43:42 PDT
Update muted state when interrupted
Attachments
Proposed patch. (4.59 KB, patch)
2017-04-07 11:03 PDT, Eric Carlson
no flags
Updated patch. (4.14 KB, patch)
2017-04-08 11:09 PDT, Eric Carlson
no flags
Patch for landing. (5.00 KB, patch)
2017-04-08 13:02 PDT, Eric Carlson
commit-queue: commit-queue-
Patch for landing. (4.00 KB, patch)
2017-04-08 13:08 PDT, Eric Carlson
no flags
Radar WebKit Bug Importer
Comment 1 2017-04-07 10:44:27 PDT
Eric Carlson
Comment 2 2017-04-07 11:03:07 PDT
Created attachment 306516 [details] Proposed patch.
Build Bot
Comment 3 2017-04-07 11:04:29 PDT
Attachment 306516 [details] did not pass style-queue: ERROR: Source/WebCore/platform/mediastream/RealtimeMediaSource.h:132: The parameter name "options" adds no information, so it should be removed. [readability/parameter_name] [5] Total errors found: 1 in 5 files If any of these errors are false positives, please file a bug against check-webkit-style.
Eric Carlson
Comment 4 2017-04-08 11:09:34 PDT
Created attachment 306572 [details] Updated patch.
youenn fablet
Comment 5 2017-04-08 11:36:02 PDT
Comment on attachment 306572 [details] Updated patch. View in context: https://bugs.webkit.org/attachment.cgi?id=306572&action=review > Source/WebCore/ChangeLog:19 > + call notifyMutedObservers because the session has already stopped running. Is there a case where captureSessionIsRunningDidChange will be called for the session to start/restart? > Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.mm:278 > + if (m_muted != m_isRunning) { Shouldn't it be "if (m_muted == m_isRunning)" since we are doing "m_muted = !m_isRunning;" inside the if statement. > Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.mm:279 > + // Update muted state without generating a call to StartProducingData/StopProducingData. Not sure this comment helps. Maybe the ChangeLog is good enough?
Eric Carlson
Comment 6 2017-04-08 13:02:05 PDT
Comment on attachment 306572 [details] Updated patch. View in context: https://bugs.webkit.org/attachment.cgi?id=306572&action=review >> Source/WebCore/ChangeLog:19 >> + call notifyMutedObservers because the session has already stopped running. > > Is there a case where captureSessionIsRunningDidChange will be called for the session to start/restart? No, it is only called to notify. >> Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.mm:278 >> + if (m_muted != m_isRunning) { > > Shouldn't it be "if (m_muted == m_isRunning)" since we are doing "m_muted = !m_isRunning;" inside the if statement. Oops! >> Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.mm:279 >> + // Update muted state without generating a call to StartProducingData/StopProducingData. > > Not sure this comment helps. Maybe the ChangeLog is good enough? Removed.
Eric Carlson
Comment 7 2017-04-08 13:02:56 PDT
Created attachment 306577 [details] Patch for landing.
WebKit Commit Bot
Comment 8 2017-04-08 13:04:03 PDT
Comment on attachment 306577 [details] Patch for landing. Rejecting attachment 306577 [details] from commit-queue. Failed to run "['/Volumes/Data/EWS/WebKit/Tools/Scripts/webkit-patch', '--status-host=webkit-queues.webkit.org', '--bot-id=webkit-cq-03', 'apply-attachment', '--no-update', '--non-interactive', 306577, '--port=mac']" exit_code: 2 cwd: /Volumes/Data/EWS/WebKit Last 500 characters of output: rm/graphics/avfoundation/objc/MediaPlayerPrivateMediaStreamAVFObjC.mm.rej patching file Source/WebCore/platform/mediastream/RealtimeMediaSource.cpp patching file Source/WebCore/platform/mediastream/RealtimeMediaSource.h patching file Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.h patching file Source/WebCore/platform/mediastream/mac/AVMediaCaptureSource.mm Failed to run "[u'/Volumes/Data/EWS/WebKit/Tools/Scripts/svn-apply', '--force']" exit_code: 1 cwd: /Volumes/Data/EWS/WebKit Full output: http://webkit-queues.webkit.org/results/3501792
Eric Carlson
Comment 9 2017-04-08 13:08:39 PDT
Created attachment 306579 [details] Patch for landing.
WebKit Commit Bot
Comment 10 2017-04-08 13:35:48 PDT
Comment on attachment 306579 [details] Patch for landing. Clearing flags on attachment: 306579 Committed r215147: <http://trac.webkit.org/changeset/215147>
Note You need to log in before you can comment on or make changes to this bug.