| OLD | NEW |
| 1 // Copyright 2016 The Chromium Authors. All rights reserved. | 1 // Copyright 2016 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 "media/remoting/demuxer_stream_adapter.h" | 5 #include "media/remoting/demuxer_stream_adapter.h" |
| 6 | 6 |
| 7 #include "base/base64.h" | 7 #include "base/base64.h" |
| 8 #include "base/bind.h" | 8 #include "base/bind.h" |
| 9 #include "base/callback_helpers.h" | 9 #include "base/callback_helpers.h" |
| 10 #include "base/single_thread_task_runner.h" |
| 10 #include "media/base/bind_to_current_loop.h" | 11 #include "media/base/bind_to_current_loop.h" |
| 11 #include "media/base/decoder_buffer.h" | 12 #include "media/base/decoder_buffer.h" |
| 12 #include "media/base/timestamp_constants.h" | 13 #include "media/base/timestamp_constants.h" |
| 13 #include "media/remoting/proto_enum_utils.h" | 14 #include "media/remoting/proto_enum_utils.h" |
| 14 #include "media/remoting/proto_utils.h" | 15 #include "media/remoting/proto_utils.h" |
| 15 | 16 |
| 16 // Convenience logging macro used throughout this file. | 17 // Convenience logging macro used throughout this file. |
| 17 #define DEMUXER_VLOG(level) VLOG(level) << __func__ << "[" << name_ << "]: " | 18 #define DEMUXER_VLOG(level) VLOG(level) << __func__ << "[" << name_ << "]: " |
| 18 | 19 |
| 19 namespace media { | 20 namespace media { |
| (...skipping 411 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 431 if (write_watcher_.IsWatching()) { | 432 if (write_watcher_.IsWatching()) { |
| 432 DEMUXER_VLOG(2) << "Cancel mojo data pipe watcher"; | 433 DEMUXER_VLOG(2) << "Cancel mojo data pipe watcher"; |
| 433 write_watcher_.Cancel(); | 434 write_watcher_.Cancel(); |
| 434 } | 435 } |
| 435 | 436 |
| 436 base::ResetAndReturn(&error_callback_).Run(stop_trigger); | 437 base::ResetAndReturn(&error_callback_).Run(stop_trigger); |
| 437 } | 438 } |
| 438 | 439 |
| 439 } // namespace remoting | 440 } // namespace remoting |
| 440 } // namespace media | 441 } // namespace media |
| OLD | NEW |