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

Unified Diff: media/base/audio_renderer.h

Issue 2684103005: Allow media track switching. (Closed)
Patch Set: Fixed comments Created 3 years, 8 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 | « content/renderer/media/media_interface_provider.cc ('k') | media/base/fake_audio_renderer_sink.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/base/audio_renderer.h
diff --git a/media/base/audio_renderer.h b/media/base/audio_renderer.h
index 48cf7b7266cb5dc779c4175bf3db783227b84967..0bd368d3303276770f82de959439df4b96f7d704 100644
--- a/media/base/audio_renderer.h
+++ b/media/base/audio_renderer.h
@@ -32,6 +32,11 @@ class MEDIA_EXPORT AudioRenderer {
//
// |cdm_context| can be used to handle encrypted streams. May be null if the
// stream is not encrypted.
+ //
+ // AudioRenderer may be reinitialized for playback of a different demuxer
+ // stream by calling Initialize again when the renderer is in a flushed
+ // state (i.e. after Flush call, but before StartPlaying). This is used for
+ // media track switching.
virtual void Initialize(DemuxerStream* stream,
CdmContext* cdm_context,
RendererClient* client,
« no previous file with comments | « content/renderer/media/media_interface_provider.cc ('k') | media/base/fake_audio_renderer_sink.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698