| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 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/mojo/services/mojo_demuxer_stream_impl.h" | 5 #include "media/mojo/services/mojo_demuxer_stream_impl.h" |
| 6 | 6 |
| 7 #include <stdint.h> |
| 8 |
| 7 #include "base/bind.h" | 9 #include "base/bind.h" |
| 8 #include "media/base/audio_decoder_config.h" | 10 #include "media/base/audio_decoder_config.h" |
| 9 #include "media/base/decoder_buffer.h" | 11 #include "media/base/decoder_buffer.h" |
| 10 #include "media/base/video_decoder_config.h" | 12 #include "media/base/video_decoder_config.h" |
| 11 #include "media/mojo/services/media_type_converters.h" | 13 #include "media/mojo/services/media_type_converters.h" |
| 12 #include "mojo/public/cpp/system/data_pipe.h" | 14 #include "mojo/public/cpp/system/data_pipe.h" |
| 13 | 15 |
| 14 namespace media { | 16 namespace media { |
| 15 | 17 |
| 16 MojoDemuxerStreamImpl::MojoDemuxerStreamImpl( | 18 MojoDemuxerStreamImpl::MojoDemuxerStreamImpl( |
| (...skipping 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 117 | 119 |
| 118 // TODO(dalecurtis): Once we can write framed data to the DataPipe, fill via | 120 // TODO(dalecurtis): Once we can write framed data to the DataPipe, fill via |
| 119 // the producer handle and then read more to keep the pipe full. Waiting for | 121 // the producer handle and then read more to keep the pipe full. Waiting for |
| 120 // space can be accomplished using an AsyncWaiter. | 122 // space can be accomplished using an AsyncWaiter. |
| 121 callback.Run(static_cast<interfaces::DemuxerStream::Status>(status), | 123 callback.Run(static_cast<interfaces::DemuxerStream::Status>(status), |
| 122 interfaces::DecoderBuffer::From(buffer), audio_config.Pass(), | 124 interfaces::DecoderBuffer::From(buffer), audio_config.Pass(), |
| 123 video_config.Pass()); | 125 video_config.Pass()); |
| 124 } | 126 } |
| 125 | 127 |
| 126 } // namespace media | 128 } // namespace media |
| OLD | NEW |