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

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

Issue 254473006: Add media::StreamParser::StreamParameter struct. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 8 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/mp4/mp4_stream_parser_unittest.cc ('k') | media/formats/webm/webm_stream_parser.cc » ('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 4d0a20287eb3406bb0b0ddc746bc7985f3bccf84..89c1b622861c6ab82bb394a4b085bf5a0c670b0d 100644
--- a/media/formats/mpeg/mpeg_audio_stream_parser_base.cc
+++ b/media/formats/mpeg/mpeg_audio_stream_parser_base.cc
@@ -222,9 +222,11 @@ int MPEGAudioStreamParserBase::ParseFrame(const uint8* data,
VideoDecoderConfig video_config;
bool success = config_cb_.Run(config_, video_config, TextTrackConfigMap());
- if (!init_cb_.is_null())
- base::ResetAndReturn(&init_cb_).Run(
- success, kInfiniteDuration(), base::Time(), true);
+ if (!init_cb_.is_null()) {
+ InitParameters params(kInfiniteDuration());
+ params.auto_update_timestamp_offset = true;
+ base::ResetAndReturn(&init_cb_).Run(success, params);
+ }
if (!success)
return -1;
« no previous file with comments | « media/formats/mp4/mp4_stream_parser_unittest.cc ('k') | media/formats/webm/webm_stream_parser.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698