| Index: third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
|
| diff --git a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
|
| index 98a314d3c753aad2b98759a2142bc525fd8e9caf..c65890142bb5e89ae772586390be824b963dc1c5 100644
|
| --- a/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
|
| +++ b/third_party/WebKit/Source/platform/mediastream/MediaStreamSource.cpp
|
| @@ -55,6 +55,13 @@ MediaStreamSource::MediaStreamSource(const String& id,
|
| m_readyState(readyState),
|
| m_requiresConsumer(requiresConsumer) {}
|
|
|
| +MediaStreamSource::~MediaStreamSource() {
|
| + // Verify that the audio thread isn't consuming audio.
|
| + // TODO(sof): remove once crbug.com/682945 has been diagnosed.
|
| + MutexTryLocker tryLocker(m_audioConsumersLock);
|
| + CHECK(tryLocker.locked());
|
| +}
|
| +
|
| void MediaStreamSource::setReadyState(ReadyState readyState) {
|
| if (m_readyState != ReadyStateEnded && m_readyState != readyState) {
|
| m_readyState = readyState;
|
|
|