Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(637)

Side by Side Diff: media/filters/frame_processor.cc

Issue 2075303002: [DO NOT COMMIT] Initial MediaPlayerRenderer plumbing and basic features (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 6 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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
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
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
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698