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

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

Issue 322273003: MSE: On init segment received, set need random access point flag on all track buffers (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 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 | Annotate | Revision Log
« no previous file with comments | « no previous file | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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 644 matching lines...) Expand 10 before | Expand all | Expand 10 after
655 success &= false; 655 success &= false;
656 MEDIA_LOG(log_cb_) << "New text track config for track ID " 656 MEDIA_LOG(log_cb_) << "New text track config for track ID "
657 << config_itr->first 657 << config_itr->first
658 << " does not match old one."; 658 << " does not match old one.";
659 break; 659 break;
660 } 660 }
661 } 661 }
662 } 662 }
663 } 663 }
664 664
665 frame_processor_->SetAllTrackBuffersNeedRandomAccessPoint();
666
665 DVLOG(1) << "OnNewConfigs() : " << (success ? "success" : "failed"); 667 DVLOG(1) << "OnNewConfigs() : " << (success ? "success" : "failed");
666 return success; 668 return success;
667 } 669 }
668 670
669 void SourceState::OnNewMediaSegment() { 671 void SourceState::OnNewMediaSegment() {
670 DVLOG(2) << "OnNewMediaSegment()"; 672 DVLOG(2) << "OnNewMediaSegment()";
671 parsing_media_segment_ = true; 673 parsing_media_segment_ = true;
672 new_media_segment_ = true; 674 new_media_segment_ = true;
673 } 675 }
674 676
(...skipping 1078 matching lines...) Expand 10 before | Expand all | Expand 10 after
1753 } 1755 }
1754 1756
1755 void ChunkDemuxer::ShutdownAllStreams() { 1757 void ChunkDemuxer::ShutdownAllStreams() {
1756 for (SourceStateMap::iterator itr = source_state_map_.begin(); 1758 for (SourceStateMap::iterator itr = source_state_map_.begin();
1757 itr != source_state_map_.end(); ++itr) { 1759 itr != source_state_map_.end(); ++itr) {
1758 itr->second->Shutdown(); 1760 itr->second->Shutdown();
1759 } 1761 }
1760 } 1762 }
1761 1763
1762 } // namespace media 1764 } // namespace media
OLDNEW
« no previous file with comments | « no previous file | media/filters/chunk_demuxer_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698