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

Side by Side Diff: media/filters/frame_processor.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 | « media/filters/frame_processor.h ('k') | media/filters/frame_processor_base.h » ('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 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 "base/stl_util.h" 7 #include "base/stl_util.h"
8 #include "media/base/buffers.h" 8 #include "media/base/buffers.h"
9 #include "media/base/stream_parser_buffer.h" 9 #include "media/base/stream_parser_buffer.h"
10 10
(...skipping 352 matching lines...) Expand 10 before | Expand all | Expand 10 after
363 group_end_timestamp_ = frame_end_timestamp; 363 group_end_timestamp_ = frame_end_timestamp;
364 DCHECK(group_end_timestamp_ >= base::TimeDelta()); 364 DCHECK(group_end_timestamp_ >= base::TimeDelta());
365 365
366 return true; 366 return true;
367 } 367 }
368 368
369 NOTREACHED(); 369 NOTREACHED();
370 return false; 370 return false;
371 } 371 }
372 372
373 void FrameProcessor::SetAllTrackBuffersNeedRandomAccessPoint() {
374 for (TrackBufferMap::iterator itr = track_buffers_.begin();
375 itr != track_buffers_.end(); ++itr) {
376 itr->second->set_needs_random_access_point(true);
377 }
378 }
379
380 } // namespace media 373 } // namespace media
OLDNEW
« no previous file with comments | « media/filters/frame_processor.h ('k') | media/filters/frame_processor_base.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698