Bug 1573524 - In MediaRecorder::MediaStreamReady, get the graph rate from a track that's guaranteed live. r=padenot

Differential Revision: https://phabricator.services.mozilla.com/D42525

--HG--
extra : moz-landing-system : lando
This commit is contained in:
Andreas Pehrson 2019-08-26 07:48:23 +00:00
Родитель fe3c28a25a
Коммит 3321f57840
1 изменённых файлов: 1 добавлений и 1 удалений

Просмотреть файл

@ -714,7 +714,7 @@ class MediaRecorder::Session : public PrincipalChangeObserver<MediaStreamTrack>,
LOG(LogLevel::Debug,
("Session.MediaTracksReady track type = (%d)", trackTypes));
InitEncoder(trackTypes, tracks[0]->Graph()->GraphRate());
InitEncoder(trackTypes, mMediaStreamTracks[0]->Graph()->GraphRate());
}
void ConnectMediaStreamTrack(MediaStreamTrack& aTrack) {