| Index: media/base/android/media_source_player.h
|
| diff --git a/media/base/android/media_source_player.h b/media/base/android/media_source_player.h
|
| index c6719504955f879b1cb935b7f796920cdd7686c5..626ff8ff23d925a6ebc8f5f15b07b8783f0d65ed 100644
|
| --- a/media/base/android/media_source_player.h
|
| +++ b/media/base/android/media_source_player.h
|
| @@ -131,6 +131,7 @@ class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid {
|
| virtual bool CanSeekForward() OVERRIDE;
|
| virtual bool CanSeekBackward() OVERRIDE;
|
| virtual bool IsPlayerReady() OVERRIDE;
|
| + virtual void OnSeekRequestAck() OVERRIDE;
|
|
|
| // Called when the demuxer is ready.
|
| virtual void DemuxerReady(
|
| @@ -141,11 +142,8 @@ class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid {
|
| const MediaPlayerHostMsg_ReadFromDemuxerAck_Params& params) OVERRIDE;
|
|
|
| private:
|
| - // Update the timestamps for A/V sync scheduling. |kickoff_time| keeps
|
| - // track of when the job is started. We need this to check if a seek is
|
| - // performed during decoding.
|
| + // Update the timestamps for A/V sync scheduling.
|
| void UpdateTimestamps(
|
| - const base::Time& kickoff_time,
|
| const base::TimeDelta& presentation_timestamp,
|
| const base::Time& wallclock_time);
|
|
|
| @@ -157,8 +155,7 @@ class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid {
|
|
|
| // Called when the decoder finishes its task.
|
| void MediaDecoderCallback(
|
| - bool is_audio, const base::Time& kickoff_time,
|
| - const base::TimeDelta& presentation_timestamp,
|
| + bool is_audio, const base::TimeDelta& presentation_timestamp,
|
| const base::Time& wallclock_time, bool end_of_stream);
|
|
|
| // Called to decoder more data.
|
| @@ -172,6 +169,12 @@ class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid {
|
| // Pending play event while player is preparing.
|
| bool pending_play_;
|
|
|
| + // Whether there is a pending seek request to send to the renderer.
|
| + bool pending_media_seek_request_;
|
| +
|
| + // Number of active decoding tasks.
|
| + int active_decoding_tasks_;
|
| +
|
| // Stats about the media.
|
| base::TimeDelta duration_;
|
| int width_;
|
| @@ -195,7 +198,6 @@ class MEDIA_EXPORT MediaSourcePlayer : public MediaPlayerAndroid {
|
| // due to network or decoding problem.
|
| base::Time start_wallclock_time_;
|
| base::TimeDelta start_presentation_timestamp_;
|
| - base::Time last_seek_time_;
|
|
|
| // Decoder jobs
|
| ScopedMediaDecoderJob audio_decoder_job_;
|
|
|