| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 // TODO(scherkus): clean up PipelineImpl... too many crazy function names, | 5 // TODO(scherkus): clean up PipelineImpl... too many crazy function names, |
| 6 // potential deadlocks, etc... | 6 // potential deadlocks, etc... |
| 7 | 7 |
| 8 #include "media/base/pipeline_impl.h" | 8 #include "media/base/pipeline_impl.h" |
| 9 | 9 |
| 10 #include <algorithm> | 10 #include <algorithm> |
| 11 | 11 |
| 12 #include "base/bind.h" | 12 #include "base/bind.h" |
| 13 #include "base/callback.h" | 13 #include "base/callback.h" |
| 14 #include "base/compiler_specific.h" | 14 #include "base/compiler_specific.h" |
| 15 #include "base/stl_util.h" | 15 #include "base/stl_util.h" |
| 16 #include "base/string_util.h" | 16 #include "base/string_util.h" |
| 17 #include "base/synchronization/condition_variable.h" | 17 #include "base/synchronization/condition_variable.h" |
| 18 #include "media/base/clock.h" | 18 #include "media/base/clock.h" |
| 19 #include "media/base/filter_collection.h" | 19 #include "media/base/filter_collection.h" |
| 20 #include "media/base/media_format.h" | |
| 21 | 20 |
| 22 namespace media { | 21 namespace media { |
| 23 | 22 |
| 24 const char kRawMediaScheme[] = "x-raw-media"; | 23 const char kRawMediaScheme[] = "x-raw-media"; |
| 25 | 24 |
| 26 PipelineStatusNotification::PipelineStatusNotification() | 25 PipelineStatusNotification::PipelineStatusNotification() |
| 27 : cv_(&lock_), status_(PIPELINE_OK), notified_(false) { | 26 : cv_(&lock_), status_(PIPELINE_OK), notified_(false) { |
| 28 callback_.reset(NewCallback(this, &PipelineStatusNotification::Notify)); | 27 callback_.reset(NewCallback(this, &PipelineStatusNotification::Notify)); |
| 29 } | 28 } |
| 30 | 29 |
| (...skipping 1273 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1304 case kStopping: | 1303 case kStopping: |
| 1305 case kStopped: | 1304 case kStopped: |
| 1306 NOTREACHED() << "Unexpected state for teardown: " << state_; | 1305 NOTREACHED() << "Unexpected state for teardown: " << state_; |
| 1307 break; | 1306 break; |
| 1308 // default: intentionally left out to force new states to cause compiler | 1307 // default: intentionally left out to force new states to cause compiler |
| 1309 // errors. | 1308 // errors. |
| 1310 }; | 1309 }; |
| 1311 } | 1310 } |
| 1312 | 1311 |
| 1313 } // namespace media | 1312 } // namespace media |
| OLD | NEW |