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

Unified Diff: media/formats/mpeg/mpeg_audio_stream_parser_base.cc

Issue 1091293005: MSE: Relax the 'media segment must begin with keyframe' requirement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased. Checkpoint. Not ready for review yet. Created 5 years, 3 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/mpeg/mpeg_audio_stream_parser_base.h ('k') | media/formats/webm/webm_stream_parser.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/formats/mpeg/mpeg_audio_stream_parser_base.cc
diff --git a/media/formats/mpeg/mpeg_audio_stream_parser_base.cc b/media/formats/mpeg/mpeg_audio_stream_parser_base.cc
index 231fea45a78f997bcb389f42198a2cb6646a7c3c..485364c0e0fd1b70f43952a60546ca712b20f6e8 100644
--- a/media/formats/mpeg/mpeg_audio_stream_parser_base.cc
+++ b/media/formats/mpeg/mpeg_audio_stream_parser_base.cc
@@ -60,7 +60,7 @@ void MPEGAudioStreamParserBase::Init(
const NewBuffersCB& new_buffers_cb,
bool ignore_text_tracks,
const EncryptedMediaInitDataCB& encrypted_media_init_data_cb,
- const NewMediaSegmentCB& new_segment_cb,
+ const base::Closure& start_of_segment_cb,
const base::Closure& end_of_segment_cb,
const scoped_refptr<MediaLog>& media_log) {
DVLOG(1) << __FUNCTION__;
@@ -68,7 +68,7 @@ void MPEGAudioStreamParserBase::Init(
init_cb_ = init_cb;
config_cb_ = config_cb;
new_buffers_cb_ = new_buffers_cb;
- new_segment_cb_ = new_segment_cb;
+ start_of_segment_cb_ = start_of_segment_cb;
end_of_segment_cb_ = end_of_segment_cb;
media_log_ = media_log;
@@ -398,7 +398,7 @@ bool MPEGAudioStreamParserBase::SendBuffers(BufferQueue* buffers,
if (!in_media_segment_) {
in_media_segment_ = true;
- new_segment_cb_.Run();
+ start_of_segment_cb_.Run();
}
BufferQueue empty_video_buffers;
« no previous file with comments | « media/formats/mpeg/mpeg_audio_stream_parser_base.h ('k') | media/formats/webm/webm_stream_parser.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698