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/debug/trace_event.h" | 9 #include "base/debug/trace_event.h" |
10 #include "base/message_loop/message_loop_proxy.h" | 10 #include "base/message_loop/message_loop_proxy.h" |
(...skipping 629 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
640 if (!AreDemuxerConfigsChanged(configs)) | 640 if (!AreDemuxerConfigsChanged(configs)) |
641 return false; | 641 return false; |
642 return true; | 642 return true; |
643 } | 643 } |
644 | 644 |
645 void MediaDecoderJob::ReleaseMediaCodecBridge() { | 645 void MediaDecoderJob::ReleaseMediaCodecBridge() { |
646 if (!media_codec_bridge_) | 646 if (!media_codec_bridge_) |
647 return; | 647 return; |
648 | 648 |
649 media_codec_bridge_.reset(); | 649 media_codec_bridge_.reset(); |
650 OnMediaCodecBridgeReleased(); | |
651 } | 650 } |
652 | 651 |
653 } // namespace media | 652 } // namespace media |
OLD | NEW |