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

Unified Diff: media/filters/media_source_state.cc

Issue 1670033002: Reland: MSE: Relax the 'media segment must begin with keyframe' requirement (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Undid patch set 9's test change, since FrameProcessor *can* produce that output Created 4 years, 10 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/media_source_state.h ('k') | media/filters/source_buffer_range.h » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/filters/media_source_state.cc
diff --git a/media/filters/media_source_state.cc b/media/filters/media_source_state.cc
index 9ca39aa62b26f6194cb457149f9a5ec31a2789f5..ede96052668fb086df2664f5a11b3f36b647b6ca 100644
--- a/media/filters/media_source_state.cc
+++ b/media/filters/media_source_state.cc
@@ -90,7 +90,6 @@ MediaSourceState::MediaSourceState(
const scoped_refptr<MediaLog>& media_log)
: create_demuxer_stream_cb_(create_demuxer_stream_cb),
timestamp_offset_during_append_(NULL),
- new_media_segment_(false),
parsing_media_segment_(false),
media_segment_contained_audio_frame_(false),
media_segment_contained_video_frame_(false),
@@ -647,7 +646,6 @@ bool MediaSourceState::OnNewConfigs(
void MediaSourceState::OnNewMediaSegment() {
DVLOG(2) << "OnNewMediaSegment()";
parsing_media_segment_ = true;
- new_media_segment_ = true;
media_segment_contained_audio_frame_ = false;
media_segment_contained_video_frame_ = false;
}
@@ -655,7 +653,6 @@ void MediaSourceState::OnNewMediaSegment() {
void MediaSourceState::OnEndOfMediaSegment() {
DVLOG(2) << "OnEndOfMediaSegment()";
parsing_media_segment_ = false;
- new_media_segment_ = false;
const bool missing_audio = audio_ && !media_segment_contained_audio_frame_;
const bool missing_video = video_ && !media_segment_contained_video_frame_;
@@ -702,10 +699,10 @@ bool MediaSourceState::OnNewBuffers(
}
}
- if (!frame_processor_->ProcessFrames(
- audio_buffers, video_buffers, text_map,
- append_window_start_during_append_, append_window_end_during_append_,
- &new_media_segment_, timestamp_offset_during_append_)) {
+ if (!frame_processor_->ProcessFrames(audio_buffers, video_buffers, text_map,
+ append_window_start_during_append_,
+ append_window_end_during_append_,
+ timestamp_offset_during_append_)) {
return false;
}
« no previous file with comments | « media/filters/media_source_state.h ('k') | media/filters/source_buffer_range.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698