Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(1281)

Unified Diff: media/base/pipeline_impl.cc

Issue 160076: BufferedDataSource to support server without range request support... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/base/pipeline_impl.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_);
« no previous file with comments | « media/base/pipeline_impl.h ('k') | media/filters/ffmpeg_demuxer.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698