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

Side by Side Diff: media/base/pipeline_impl.cc

Issue 20326: Fixes a bug in the media pipeline that resulted in the video dimensions never... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 10 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 unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « media/base/mock_media_filters.h ('k') | media/base/pipeline_impl_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2009 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #include "base/compiler_specific.h" 5 #include "base/compiler_specific.h"
6 #include "media/base/filter_host_impl.h" 6 #include "media/base/filter_host_impl.h"
7 #include "media/base/media_format.h" 7 #include "media/base/media_format.h"
8 #include "media/base/pipeline_impl.h" 8 #include "media/base/pipeline_impl.h"
9 9
10 namespace media { 10 namespace media {
(...skipping 190 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 total_bytes_ = total_bytes; 201 total_bytes_ = total_bytes;
202 } 202 }
203 203
204 void PipelineImpl::SetBufferedBytes(int64 buffered_bytes) { 204 void PipelineImpl::SetBufferedBytes(int64 buffered_bytes) {
205 AutoLock auto_lock(lock_); 205 AutoLock auto_lock(lock_);
206 buffered_bytes_ = buffered_bytes; 206 buffered_bytes_ = buffered_bytes;
207 } 207 }
208 208
209 void PipelineImpl::SetVideoSize(size_t width, size_t height) { 209 void PipelineImpl::SetVideoSize(size_t width, size_t height) {
210 AutoLock auto_lock(lock_); 210 AutoLock auto_lock(lock_);
211 width = width; 211 video_width_ = width;
212 height = height; 212 video_height_ = height;
213 } 213 }
214 214
215 //----------------------------------------------------------------------------- 215 //-----------------------------------------------------------------------------
216 216
217 PipelineThread::PipelineThread(PipelineImpl* pipeline) 217 PipelineThread::PipelineThread(PipelineImpl* pipeline)
218 : pipeline_(pipeline), 218 : pipeline_(pipeline),
219 thread_("PipelineThread"), 219 thread_("PipelineThread"),
220 time_update_callback_scheduled_(false), 220 time_update_callback_scheduled_(false),
221 host_initializing_(NULL) { 221 host_initializing_(NULL) {
222 } 222 }
(...skipping 350 matching lines...) Expand 10 before | Expand all | Expand 10 after
573 573
574 // Called as a result of destruction of the thread. 574 // Called as a result of destruction of the thread.
575 void PipelineThread::WillDestroyCurrentMessageLoop() { 575 void PipelineThread::WillDestroyCurrentMessageLoop() {
576 while (!filter_hosts_.empty()) { 576 while (!filter_hosts_.empty()) {
577 delete filter_hosts_.back(); 577 delete filter_hosts_.back();
578 filter_hosts_.pop_back(); 578 filter_hosts_.pop_back();
579 } 579 }
580 } 580 }
581 581
582 } // namespace media 582 } // namespace media
OLDNEW
« no previous file with comments | « media/base/mock_media_filters.h ('k') | media/base/pipeline_impl_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698