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

Unified Diff: media/filters/frame_processor_base.h

Issue 321233004: MSE: Remap single text track number changes in frame processor (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fixes a couple nits 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 side-by-side diff with in-line comments
Download patch
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/frame_processor_base.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/frame_processor_base.h
diff --git a/media/filters/frame_processor_base.h b/media/filters/frame_processor_base.h
index b90c35406896e2740041b1b8216d48f1b3f7824e..3d5747663f2647e183d146be6905d937e2cc875a 100644
--- a/media/filters/frame_processor_base.h
+++ b/media/filters/frame_processor_base.h
@@ -149,6 +149,13 @@ class MEDIA_EXPORT FrameProcessorBase {
// frames for the track |id| to |stream|.
bool AddTrack(StreamParser::TrackId id, ChunkDemuxerStream* stream);
+ // Updates the internal mapping of TrackId to track buffer for the track
+ // buffer formerly associated with |old_id| to be associated with |new_id|.
+ // Returns false to indicate failure due to either no existing track buffer
+ // for |old_id| or collision with previous track buffer already mapped to
+ // |new_id|. Otherwise returns true.
+ bool UpdateTrack(StreamParser::TrackId old_id, StreamParser::TrackId new_id);
+
// Resets state for the coded frame processing algorithm as described in steps
// 2-5 of the MSE Reset Parser State algorithm described at
// http://www.w3.org/TR/media-source/#sourcebuffer-reset-parser-state
« no previous file with comments | « media/filters/chunk_demuxer_unittest.cc ('k') | media/filters/frame_processor_base.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698