Index: content/renderer/media/media_recorder_handler.cc |
diff --git a/content/renderer/media/media_recorder_handler.cc b/content/renderer/media/media_recorder_handler.cc |
index 0beedc394745310459719b71055efe2751366f60..4096d5092f9eb09f560ad63639645bc62937b4c5 100644 |
--- a/content/renderer/media/media_recorder_handler.cc |
+++ b/content/renderer/media/media_recorder_handler.cc |
@@ -165,7 +165,9 @@ bool MediaRecorderHandler::start(int timeslice) { |
&MediaRecorderHandler::OnEncodedVideo, weak_factory_.GetWeakPtr())); |
video_recorders_.push_back(new VideoTrackRecorder( |
- use_vp9_, video_track, on_encoded_video_cb, video_bits_per_second_)); |
+ use_vp9_ ? VideoTrackRecorder::CodecId::VP9 |
+ : VideoTrackRecorder::CodecId::VP8, |
+ video_track, on_encoded_video_cb, video_bits_per_second_)); |
} |
if (use_audio_tracks) { |