| Index: media/base/filters.h
|
| diff --git a/media/base/filters.h b/media/base/filters.h
|
| index adb6aff6d1fcb40493378ba5ac18fc4db1df095b..da5051fd91dbf84343d416bb77219ae8c12cee45 100644
|
| --- a/media/base/filters.h
|
| +++ b/media/base/filters.h
|
| @@ -192,10 +192,15 @@ class MEDIA_EXPORT AudioDecoder : public Filter {
|
|
|
| class MEDIA_EXPORT VideoRenderer : public Filter {
|
| public:
|
| + // Used to update the pipeline's clock time. The parameter is the time that
|
| + // the clock should not exceed.
|
| + typedef base::Callback<void(base::TimeDelta)> VideoTimeCB;
|
| +
|
| // Initialize a VideoRenderer with the given VideoDecoder, executing the
|
| - // callback upon completion.
|
| - virtual void Initialize(VideoDecoder* decoder, const base::Closure& callback,
|
| - const StatisticsCallback& stats_callback) = 0;
|
| + // |init_cb| upon completion.
|
| + virtual void Initialize(VideoDecoder* decoder, const base::Closure& init_cb,
|
| + const StatisticsCallback& stats_callback,
|
| + const VideoTimeCB& time_cb) = 0;
|
|
|
| // Returns true if this filter has received and processed an end-of-stream
|
| // buffer.
|
| @@ -205,6 +210,11 @@ class MEDIA_EXPORT VideoRenderer : public Filter {
|
|
|
| class MEDIA_EXPORT AudioRenderer : public Filter {
|
| public:
|
| + // Used to update the pipeline's clock time. The first parameter is the
|
| + // current time, and the second parameter is the time that the clock must not
|
| + // exceed.
|
| + typedef base::Callback<void(base::TimeDelta, base::TimeDelta)> AudioTimeCB;
|
| +
|
| // Initialize a AudioRenderer with the given AudioDecoder, executing the
|
| // |init_callback| upon completion. |underflow_callback| is called when the
|
| // renderer runs out of data to pass to the audio card during playback.
|
| @@ -213,7 +223,8 @@ class MEDIA_EXPORT AudioRenderer : public Filter {
|
| // condition.
|
| virtual void Initialize(AudioDecoder* decoder,
|
| const base::Closure& init_callback,
|
| - const base::Closure& underflow_callback) = 0;
|
| + const base::Closure& underflow_callback,
|
| + const AudioTimeCB& time_cb) = 0;
|
|
|
| // Returns true if this filter has received and processed an end-of-stream
|
| // buffer.
|
|
|