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

Unified Diff: media/formats/mp3/mp3_stream_parser.cc

Issue 143973009: SourceState: Coalesce OnNewBuffers() CB to include OnTextBuffers() behavior (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Address PS2 comments Created 6 years, 11 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/formats/mp3/mp3_stream_parser.h ('k') | media/formats/mp3/mp3_stream_parser_unittest.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mp3/mp3_stream_parser.cc
diff --git a/media/formats/mp3/mp3_stream_parser.cc b/media/formats/mp3/mp3_stream_parser.cc
index 3834f7a3f1e0cd28c71f53e3ce0198a96a4c9ed1..832b9f92d7c011694d098e7a36bd70ed621bb3c4 100644
--- a/media/formats/mp3/mp3_stream_parser.cc
+++ b/media/formats/mp3/mp3_stream_parser.cc
@@ -117,7 +117,7 @@ MP3StreamParser::~MP3StreamParser() {}
void MP3StreamParser::Init(const InitCB& init_cb,
const NewConfigCB& config_cb,
const NewBuffersCB& new_buffers_cb,
- const NewTextBuffersCB& text_cb,
+ bool ignore_text_tracks,
const NeedKeyCB& need_key_cb,
const NewMediaSegmentCB& new_segment_cb,
const base::Closure& end_of_segment_cb,
@@ -598,7 +598,8 @@ bool MP3StreamParser::SendBuffers(BufferQueue* buffers, bool end_of_segment) {
}
BufferQueue empty_video_buffers;
- if (!new_buffers_cb_.Run(*buffers, empty_video_buffers))
+ TextBufferQueueMap empty_text_map;
+ if (!new_buffers_cb_.Run(*buffers, empty_video_buffers, empty_text_map))
return false;
buffers->clear();
« no previous file with comments | « media/formats/mp3/mp3_stream_parser.h ('k') | media/formats/mp3/mp3_stream_parser_unittest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698