Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(229)

Unified Diff: Source/modules/webaudio/MediaStreamAudioSourceNode.h

Issue 85523002: Fixed the crash in the wbaudio source provider when the audio track is going away. (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: removed the comment. Created 7 years, 1 month ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « Source/modules/webaudio/AudioContext.cpp ('k') | Source/modules/webaudio/MediaStreamAudioSourceNode.cpp » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: Source/modules/webaudio/MediaStreamAudioSourceNode.h
diff --git a/Source/modules/webaudio/MediaStreamAudioSourceNode.h b/Source/modules/webaudio/MediaStreamAudioSourceNode.h
index 12d44ec297f9d80adc7d15c5154c9d583df6a02e..625690bc5e1bb6123ed20b0c521ee681d11f7ed7 100644
--- a/Source/modules/webaudio/MediaStreamAudioSourceNode.h
+++ b/Source/modules/webaudio/MediaStreamAudioSourceNode.h
@@ -41,7 +41,7 @@ class AudioContext;
class MediaStreamAudioSourceNode : public AudioSourceNode, public AudioSourceProviderClient {
public:
- static PassRefPtr<MediaStreamAudioSourceNode> create(AudioContext*, MediaStream*, AudioSourceProvider*);
+ static PassRefPtr<MediaStreamAudioSourceNode> create(AudioContext*, MediaStream*, MediaStreamTrack*, AudioSourceProvider*);
virtual ~MediaStreamAudioSourceNode();
@@ -57,12 +57,13 @@ public:
AudioSourceProvider* audioSourceProvider() const { return m_audioSourceProvider; }
private:
- MediaStreamAudioSourceNode(AudioContext*, MediaStream*, AudioSourceProvider*);
+ MediaStreamAudioSourceNode(AudioContext*, MediaStream*, MediaStreamTrack*, AudioSourceProvider*);
// As an audio source, we will never propagate silence.
virtual bool propagatesSilence() const OVERRIDE { return false; }
RefPtr<MediaStream> m_mediaStream;
+ RefPtr<MediaStreamTrack> m_audioTrack;
AudioSourceProvider* m_audioSourceProvider;
Mutex m_processLock;
« no previous file with comments | « Source/modules/webaudio/AudioContext.cpp ('k') | Source/modules/webaudio/MediaStreamAudioSourceNode.cpp » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698