| 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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 switch (frame->type()) { | 574 switch (frame->type()) { |
| 575 case DemuxerStream::AUDIO: | 575 case DemuxerStream::AUDIO: |
| 576 break; | 576 break; |
| 577 case DemuxerStream::VIDEO: | 577 case DemuxerStream::VIDEO: |
| 578 track_id = kVideoTrackId; | 578 track_id = kVideoTrackId; |
| 579 break; | 579 break; |
| 580 case DemuxerStream::TEXT: | 580 case DemuxerStream::TEXT: |
| 581 track_id = frame->track_id(); | 581 track_id = frame->track_id(); |
| 582 break; | 582 break; |
| 583 case DemuxerStream::UNKNOWN: | 583 case DemuxerStream::UNKNOWN: |
| 584 case DemuxerStream::URL: |
| 584 case DemuxerStream::NUM_TYPES: | 585 case DemuxerStream::NUM_TYPES: |
| 585 DCHECK(false) << ": Invalid frame type " << frame->type(); | 586 DCHECK(false) << ": Invalid frame type " << frame->type(); |
| 586 return false; | 587 return false; |
| 587 } | 588 } |
| 588 | 589 |
| 589 MseTrackBuffer* track_buffer = FindTrack(track_id); | 590 MseTrackBuffer* track_buffer = FindTrack(track_id); |
| 590 if (!track_buffer) { | 591 if (!track_buffer) { |
| 591 MEDIA_LOG(ERROR, media_log_) | 592 MEDIA_LOG(ERROR, media_log_) |
| 592 << "Unknown track with type " << frame->GetTypeName() | 593 << "Unknown track with type " << frame->GetTypeName() |
| 593 << ", frame processor track id " << track_id | 594 << ", frame processor track id " << track_id |
| (...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 760 // Step 21 is currently handled differently. See MediaSourceState's | 761 // Step 21 is currently handled differently. See MediaSourceState's |
| 761 // |auto_update_timestamp_offset_|. | 762 // |auto_update_timestamp_offset_|. |
| 762 return true; | 763 return true; |
| 763 } | 764 } |
| 764 | 765 |
| 765 NOTREACHED(); | 766 NOTREACHED(); |
| 766 return false; | 767 return false; |
| 767 } | 768 } |
| 768 | 769 |
| 769 } // namespace media | 770 } // namespace media |
| OLD | NEW |