| Index: media/base/pipeline_impl.cc
|
| ===================================================================
|
| --- media/base/pipeline_impl.cc (revision 21979)
|
| +++ media/base/pipeline_impl.cc (working copy)
|
| @@ -237,6 +237,11 @@
|
| *height_out = video_height_;
|
| }
|
|
|
| +bool PipelineImpl::IsStreaming() const {
|
| + AutoLock auto_lock(lock_);
|
| + return streaming_;
|
| +}
|
| +
|
| PipelineError PipelineImpl::GetError() const {
|
| AutoLock auto_lock(lock_);
|
| return error_;
|
| @@ -249,6 +254,7 @@
|
| duration_ = kZero;
|
| buffered_time_ = kZero;
|
| buffered_bytes_ = 0;
|
| + streaming_ = false;
|
| total_bytes_ = 0;
|
| video_width_ = 0;
|
| video_height_ = 0;
|
| @@ -343,6 +349,12 @@
|
| video_height_ = height;
|
| }
|
|
|
| +void PipelineImpl::SetStreaming(bool streaming) {
|
| + DCHECK(IsRunning());
|
| + AutoLock auto_lock(lock_);
|
| + streaming_ = streaming;
|
| +}
|
| +
|
| void PipelineImpl::InsertRenderedMimeType(const std::string& major_mime_type) {
|
| DCHECK(IsRunning());
|
| AutoLock auto_lock(lock_);
|
|
|