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

Unified Diff: media/audio/simple_sources.h

Issue 1018293002: Make fake file audio input device not crash when it fails to read. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 years, 9 months 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 | « no previous file | media/audio/simple_sources.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/audio/simple_sources.h
diff --git a/media/audio/simple_sources.h b/media/audio/simple_sources.h
index 606cebee630fdbbeed356f16412e28bbe48e91e9..dcb04fd84534804913c4b827c51a77569ea46b1e 100644
--- a/media/audio/simple_sources.h
+++ b/media/audio/simple_sources.h
@@ -66,6 +66,7 @@ class FileSource : public AudioOutputStream::AudioSourceCallback,
scoped_ptr<WavAudioHandler> wav_audio_handler_;
scoped_ptr<AudioConverter> file_audio_converter_;
int wav_file_read_pos_;
+ bool load_failed_;
// Provides audio data from wav_audio_handler_ into the file audio converter.
double ProvideInput(AudioBus* audio_bus,
« no previous file with comments | « no previous file | media/audio/simple_sources.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698