OLD | NEW |
1 // Copyright 2013 The Chromium Authors. All rights reserved. | 1 // Copyright 2013 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/base/android/media_decoder_job.h" | 5 #include "media/base/android/media_decoder_job.h" |
6 | 6 |
7 #include "base/bind.h" | 7 #include "base/bind.h" |
8 #include "base/callback_helpers.h" | 8 #include "base/callback_helpers.h" |
9 #include "base/single_thread_task_runner.h" | 9 #include "base/single_thread_task_runner.h" |
10 #include "base/thread_task_runner_handle.h" | 10 #include "base/threading/thread_task_runner_handle.h" |
11 #include "base/trace_event/trace_event.h" | 11 #include "base/trace_event/trace_event.h" |
12 #include "media/base/android/media_drm_bridge.h" | 12 #include "media/base/android/media_drm_bridge.h" |
13 #include "media/base/bind_to_current_loop.h" | 13 #include "media/base/bind_to_current_loop.h" |
14 #include "media/base/timestamp_constants.h" | 14 #include "media/base/timestamp_constants.h" |
15 | 15 |
16 namespace media { | 16 namespace media { |
17 | 17 |
18 // Timeout value for media codec operations. Because the first | 18 // Timeout value for media codec operations. Because the first |
19 // DequeInputBuffer() can take about 150 milliseconds, use 250 milliseconds | 19 // DequeInputBuffer() can take about 150 milliseconds, use 250 milliseconds |
20 // here. See http://b/9357571. | 20 // here. See http://b/9357571. |
(...skipping 666 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
687 | 687 |
688 void MediaDecoderJob::ReleaseMediaCodecBridge() { | 688 void MediaDecoderJob::ReleaseMediaCodecBridge() { |
689 if (!media_codec_bridge_) | 689 if (!media_codec_bridge_) |
690 return; | 690 return; |
691 | 691 |
692 media_codec_bridge_.reset(); | 692 media_codec_bridge_.reset(); |
693 input_buf_index_ = -1; | 693 input_buf_index_ = -1; |
694 } | 694 } |
695 | 695 |
696 } // namespace media | 696 } // namespace media |
OLD | NEW |