| Index: media/base/video_decoder_config.h
|
| diff --git a/media/base/video_decoder_config.h b/media/base/video_decoder_config.h
|
| index 3cc33d927158a5c279c2e91b0e5dbd9aad6467e1..4c86e0bea729ff973abb0c4bd4fb7353f25b1cb2 100644
|
| --- a/media/base/video_decoder_config.h
|
| +++ b/media/base/video_decoder_config.h
|
| @@ -81,7 +81,8 @@ class MEDIA_EXPORT VideoDecoderConfig {
|
| const gfx::Rect& visible_rect,
|
| const gfx::Size& natural_size,
|
| const uint8* extra_data, size_t extra_data_size,
|
| - bool is_encrypted);
|
| + bool is_encrypted,
|
| + bool live_mode);
|
|
|
| ~VideoDecoderConfig();
|
|
|
| @@ -94,6 +95,7 @@ class MEDIA_EXPORT VideoDecoderConfig {
|
| const gfx::Size& natural_size,
|
| const uint8* extra_data, size_t extra_data_size,
|
| bool is_encrypted,
|
| + bool live_mode,
|
| bool record_stats);
|
|
|
| // Returns true if this object has appropriate configuration values, false
|
| @@ -135,6 +137,10 @@ class MEDIA_EXPORT VideoDecoderConfig {
|
| // can be encrypted or not encrypted.
|
| bool is_encrypted() const;
|
|
|
| + // True when the stream is a live stream. Decoders may use this flag e.g. to
|
| + // minimize decoding delay for live streams.
|
| + bool live_mode() const;
|
| +
|
| private:
|
| VideoCodec codec_;
|
| VideoCodecProfile profile_;
|
| @@ -149,6 +155,8 @@ class MEDIA_EXPORT VideoDecoderConfig {
|
|
|
| bool is_encrypted_;
|
|
|
| + bool live_mode_;
|
| +
|
| // Not using DISALLOW_COPY_AND_ASSIGN here intentionally to allow the compiler
|
| // generated copy constructor and assignment operator. Since the extra data is
|
| // typically small, the performance impact is minimal.
|
|
|