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

Unified Diff: content/renderer/pepper/pepper_media_stream_audio_track_host.cc

Issue 1088553004: Set correct timestamp in PepperMediaStreamAudioTrack. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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 | « no previous file | no next file » | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: content/renderer/pepper/pepper_media_stream_audio_track_host.cc
diff --git a/content/renderer/pepper/pepper_media_stream_audio_track_host.cc b/content/renderer/pepper/pepper_media_stream_audio_track_host.cc
index c8f9e7d51509be2690f9c76caf8558cb2e8a1bd5..c4b4694f113010aed326f8bbdea69bac837d901c 100644
--- a/content/renderer/pepper/pepper_media_stream_audio_track_host.cc
+++ b/content/renderer/pepper/pepper_media_stream_audio_track_host.cc
@@ -242,7 +242,7 @@ void PepperMediaStreamAudioTrackHost::AudioSink::OnData(
frame_offset * base::TimeDelta::FromSeconds(1) /
audio_params_.sample_rate();
buffer->timestamp =
- (time_at_offset - first_frame_capture_time_).InMillisecondsF();
+ (time_at_offset - first_frame_capture_time_).InSecondsF();
buffer->sample_rate =
static_cast<PP_AudioBuffer_SampleRate>(audio_params_.sample_rate());
buffer->data_size = output_buffer_size_;
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698