[MediaStream] Fix regression caused by r215626
authoreric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Apr 2017 18:46:06 +0000 (18:46 +0000)
committereric.carlson@apple.com <eric.carlson@apple.com@268f45cc-cd09-0410-ab3c-d52691b4dbfc>
Sat, 22 Apr 2017 18:46:06 +0000 (18:46 +0000)
commita06cc40ec2dfd82c96aa1b072687fcb60f594c17
treedc69e3f3c578c51c6e8d38fb73f9ffc010e2d90c
parentadb74290d76aad32a5e648a6735c9ea304ad4727
[MediaStream] Fix regression caused by r215626
https://bugs.webkit.org/show_bug.cgi?id=171168
<rdar://problem/31774787>

Reviewed by Antoine Quint.

No new tests, fixes fast/mediastream/MediaStream-page-muted.html

* Modules/mediastream/MediaStream.cpp:
(WebCore::MediaStream::mediaState): Test muted before m_isProducingData because if both are
true we want to report that the stream is muted.

git-svn-id: http://svn.webkit.org/repository/webkit/trunk@215668 268f45cc-cd09-0410-ab3c-d52691b4dbfc
Source/WebCore/ChangeLog
Source/WebCore/Modules/mediastream/MediaStream.cpp
Source/WebKit2/UIProcess/WebPageProxy.cpp