OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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/filters/chunk_demuxer.h" | 5 #include "media/filters/chunk_demuxer.h" |
6 | 6 |
7 #include <algorithm> | 7 #include <algorithm> |
8 #include <limits> | 8 #include <limits> |
9 #include <list> | 9 #include <list> |
10 | 10 |
(...skipping 934 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
945 } | 945 } |
946 | 946 |
947 bool ChunkDemuxerStream::SupportsConfigChanges() { return true; } | 947 bool ChunkDemuxerStream::SupportsConfigChanges() { return true; } |
948 | 948 |
949 TextTrackConfig ChunkDemuxerStream::text_track_config() { | 949 TextTrackConfig ChunkDemuxerStream::text_track_config() { |
950 CHECK_EQ(type_, TEXT); | 950 CHECK_EQ(type_, TEXT); |
951 base::AutoLock auto_lock(lock_); | 951 base::AutoLock auto_lock(lock_); |
952 return stream_->GetCurrentTextTrackConfig(); | 952 return stream_->GetCurrentTextTrackConfig(); |
953 } | 953 } |
954 | 954 |
| 955 VideoRotation ChunkDemuxerStream::video_rotation() { |
| 956 return VIDEO_ROTATION_0; |
| 957 } |
| 958 |
| 959 void ChunkDemuxerStream::set_video_rotation(VideoRotation video_rotation) { |
| 960 } |
| 961 |
955 void ChunkDemuxerStream::ChangeState_Locked(State state) { | 962 void ChunkDemuxerStream::ChangeState_Locked(State state) { |
956 lock_.AssertAcquired(); | 963 lock_.AssertAcquired(); |
957 DVLOG(1) << "ChunkDemuxerStream::ChangeState_Locked() : " | 964 DVLOG(1) << "ChunkDemuxerStream::ChangeState_Locked() : " |
958 << "type " << type_ | 965 << "type " << type_ |
959 << " - " << state_ << " -> " << state; | 966 << " - " << state_ << " -> " << state; |
960 state_ = state; | 967 state_ = state; |
961 } | 968 } |
962 | 969 |
963 ChunkDemuxerStream::~ChunkDemuxerStream() {} | 970 ChunkDemuxerStream::~ChunkDemuxerStream() {} |
964 | 971 |
(...skipping 774 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1739 } | 1746 } |
1740 | 1747 |
1741 void ChunkDemuxer::ShutdownAllStreams() { | 1748 void ChunkDemuxer::ShutdownAllStreams() { |
1742 for (SourceStateMap::iterator itr = source_state_map_.begin(); | 1749 for (SourceStateMap::iterator itr = source_state_map_.begin(); |
1743 itr != source_state_map_.end(); ++itr) { | 1750 itr != source_state_map_.end(); ++itr) { |
1744 itr->second->Shutdown(); | 1751 itr->second->Shutdown(); |
1745 } | 1752 } |
1746 } | 1753 } |
1747 | 1754 |
1748 } // namespace media | 1755 } // namespace media |
OLD | NEW |