| Index: media/base/demuxer.h
|
| diff --git a/media/base/demuxer.h b/media/base/demuxer.h
|
| index 853a21a2a7557de19768dc430e19613560c52dee..99bd9ae39bdb1c76aa48147eefe312a6a81dc6fb 100644
|
| --- a/media/base/demuxer.h
|
| +++ b/media/base/demuxer.h
|
| @@ -12,6 +12,7 @@
|
| #include "media/base/demuxer_stream.h"
|
| #include "media/base/media_export.h"
|
| #include "media/base/pipeline_status.h"
|
| +#include "media/base/text_track.h"
|
|
|
| namespace media {
|
|
|
| @@ -25,6 +26,12 @@ class MEDIA_EXPORT DemuxerHost : public DataSourceHost {
|
| // method with PIPELINE_OK.
|
| virtual void OnDemuxerError(PipelineStatus error) = 0;
|
|
|
| + // Add |text_stream| to the collection managed by the text renderer.
|
| + virtual void AddTextStream(DemuxerStream* text_stream,
|
| + TextKind kind,
|
| + const std::string& label,
|
| + const std::string& language) = 0;
|
| +
|
| protected:
|
| virtual ~DemuxerHost();
|
| };
|
| @@ -69,7 +76,8 @@ class MEDIA_EXPORT Demuxer {
|
| // TODO(scherkus): this might not be needed http://crbug.com/234708
|
| virtual void OnAudioRendererDisabled();
|
|
|
| - // Returns the given stream type, or NULL if that type is not present.
|
| + // Returns the first stream of the given stream type, or NULL if that type
|
| + // of stream is not present.
|
| virtual DemuxerStream* GetStream(DemuxerStream::Type type) = 0;
|
|
|
| // Returns the starting time for the media file.
|
|
|