| 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/filters/frame_processor.h" | 5 #include "media/filters/frame_processor.h" |
| 6 | 6 |
| 7 #include <stdint.h> | 7 #include <stdint.h> |
| 8 | 8 |
| 9 #include <cstdlib> | 9 #include <cstdlib> |
| 10 | 10 |
| (...skipping 556 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 567 switch (frame->type()) { | 567 switch (frame->type()) { |
| 568 case DemuxerStream::AUDIO: | 568 case DemuxerStream::AUDIO: |
| 569 break; | 569 break; |
| 570 case DemuxerStream::VIDEO: | 570 case DemuxerStream::VIDEO: |
| 571 track_id = kVideoTrackId; | 571 track_id = kVideoTrackId; |
| 572 break; | 572 break; |
| 573 case DemuxerStream::TEXT: | 573 case DemuxerStream::TEXT: |
| 574 track_id = frame->track_id(); | 574 track_id = frame->track_id(); |
| 575 break; | 575 break; |
| 576 case DemuxerStream::UNKNOWN: | 576 case DemuxerStream::UNKNOWN: |
| 577 case DemuxerStream::URL: |
| 577 case DemuxerStream::NUM_TYPES: | 578 case DemuxerStream::NUM_TYPES: |
| 578 DCHECK(false) << ": Invalid frame type " << frame->type(); | 579 DCHECK(false) << ": Invalid frame type " << frame->type(); |
| 579 return false; | 580 return false; |
| 580 } | 581 } |
| 581 | 582 |
| 582 MseTrackBuffer* track_buffer = FindTrack(track_id); | 583 MseTrackBuffer* track_buffer = FindTrack(track_id); |
| 583 if (!track_buffer) { | 584 if (!track_buffer) { |
| 584 MEDIA_LOG(ERROR, media_log_) | 585 MEDIA_LOG(ERROR, media_log_) |
| 585 << "Unknown track with type " << frame->GetTypeName() | 586 << "Unknown track with type " << frame->GetTypeName() |
| 586 << ", frame processor track id " << track_id | 587 << ", frame processor track id " << track_id |
| (...skipping 160 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 747 // Step 21 is currently handled differently. See MediaSourceState's | 748 // Step 21 is currently handled differently. See MediaSourceState's |
| 748 // |auto_update_timestamp_offset_|. | 749 // |auto_update_timestamp_offset_|. |
| 749 return true; | 750 return true; |
| 750 } | 751 } |
| 751 | 752 |
| 752 NOTREACHED(); | 753 NOTREACHED(); |
| 753 return false; | 754 return false; |
| 754 } | 755 } |
| 755 | 756 |
| 756 } // namespace media | 757 } // namespace media |
| OLD | NEW |