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

Unified Diff: media/formats/webm/webm_stream_parser.cc

Issue 1564983003: MSE: Log a warning if muxed AV media segment has no A or has no V block (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Addressed previous CR comments Created 4 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
Index: media/formats/webm/webm_stream_parser.cc
diff --git a/media/formats/webm/webm_stream_parser.cc b/media/formats/webm/webm_stream_parser.cc
index 6695e2eb2f047695a691e61d4f33be03ca29d5b4..e36a972adec9a0a954bc2bff6550cb2fa7930390 100644
--- a/media/formats/webm/webm_stream_parser.cc
+++ b/media/formats/webm/webm_stream_parser.cc
@@ -33,7 +33,7 @@ void WebMStreamParser::Init(
bool ignore_text_tracks,
const EncryptedMediaInitDataCB& encrypted_media_init_data_cb,
const NewMediaSegmentCB& new_segment_cb,
- const base::Closure& end_of_segment_cb,
+ const EndMediaSegmentCB& end_of_segment_cb,
const scoped_refptr<MediaLog>& media_log) {
DCHECK_EQ(state_, kWaitingForInit);
DCHECK(init_cb_.is_null());
@@ -61,10 +61,8 @@ void WebMStreamParser::Flush() {
byte_queue_.Reset();
if (cluster_parser_)
cluster_parser_->Reset();
- if (state_ == kParsingClusters) {
+ if (state_ == kParsingClusters)
ChangeState(kParsingHeaders);
- end_of_segment_cb_.Run();
- }
}
bool WebMStreamParser::Parse(const uint8_t* buf, int size) {
« media/filters/chunk_demuxer_unittest.cc ('K') | « media/formats/webm/webm_stream_parser.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698