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

Unified Diff: media/filters/ffmpeg_audio_decoder.h

Issue 2871263003: Set |config_| only after decoder has been successfully configured (Closed)
Patch Set: fixed unittests Created 3 years, 7 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/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/ffmpeg_audio_decoder.h
diff --git a/media/filters/ffmpeg_audio_decoder.h b/media/filters/ffmpeg_audio_decoder.h
index b719d7838eaef4e8c3bf765b2c9089cc4b117ec6..c18a37bec3628281b05ad750820c99a88b3d18e1 100644
--- a/media/filters/ffmpeg_audio_decoder.h
+++ b/media/filters/ffmpeg_audio_decoder.h
@@ -91,12 +91,12 @@ class MEDIA_EXPORT FFmpegAudioDecoder : public AudioDecoder {
// Handles (re-)initializing the decoder with a (new) config.
// Returns true if initialization was successful.
- bool ConfigureDecoder();
+ bool ConfigureDecoder(const AudioDecoderConfig& config);
// Releases resources associated with |codec_context_| and |av_frame_|
// and resets them to NULL.
void ReleaseFFmpegResources();
- void ResetTimestampState();
+ void ResetTimestampState(const AudioDecoderConfig& config);
scoped_refptr<base::SingleThreadTaskRunner> task_runner_;
« no previous file with comments | « no previous file | media/filters/ffmpeg_audio_decoder.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698