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

Unified Diff: media/cast/test/receiver.cc

Issue 845993002: Adding "rtp_timebase" variable in lieu of "frequency" for FrameReceiverConfig structure. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 5 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
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/test/utility/default_config.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: media/cast/test/receiver.cc
diff --git a/media/cast/test/receiver.cc b/media/cast/test/receiver.cc
index e930034c377999f9aeccb0c7e868cc43576dde1a..4fd265038409ed634359d3158bc523b7d9c3300a 100644
--- a/media/cast/test/receiver.cc
+++ b/media/cast/test/receiver.cc
@@ -152,10 +152,10 @@ FrameReceiverConfig GetVideoReceiverConfig() {
}
AudioParameters ToAudioParameters(const FrameReceiverConfig& config) {
- const int samples_in_10ms = config.frequency / 100;
+ const int samples_in_10ms = config.rtp_timebase / 100;
return AudioParameters(AudioParameters::AUDIO_PCM_LOW_LATENCY,
GuessChannelLayout(config.channels),
- config.frequency, 32, samples_in_10ms);
+ config.rtp_timebase, 32, samples_in_10ms);
}
// An InProcessReceiver that renders video frames to a LinuxOutputWindow and
« no previous file with comments | « media/cast/test/end2end_unittest.cc ('k') | media/cast/test/utility/default_config.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698