зеркало из https://github.com/mozilla/gecko-dev.git
Backed out changeset 974c4db3003e (bug 818822)
This commit is contained in:
Родитель
f04d6425a9
Коммит
9e57378546
|
@ -132,12 +132,7 @@ MediaEngineDefaultVideoSource::Start(SourceMediaStream* aStream, TrackID aID)
|
|||
mTrackID = aID;
|
||||
|
||||
// Start timer for subsequent frames
|
||||
#if defined(MOZ_WIDGET_GONK) && defined(DEBUG)
|
||||
// B2G emulator debug is very, very slow and has problems dealing with realtime audio inputs
|
||||
mTimer->InitWithCallback(this, (1000 / mOpts.mFPS)*10, nsITimer::TYPE_REPEATING_SLACK);
|
||||
#else
|
||||
mTimer->InitWithCallback(this, 1000 / mOpts.mFPS, nsITimer::TYPE_REPEATING_SLACK);
|
||||
#endif
|
||||
mState = kStarted;
|
||||
|
||||
return NS_OK;
|
||||
|
@ -405,14 +400,8 @@ MediaEngineDefaultAudioSource::Start(SourceMediaStream* aStream, TrackID aID)
|
|||
mTrackID = aID;
|
||||
|
||||
// 1 Audio frame per 10ms
|
||||
#if defined(MOZ_WIDGET_GONK) && defined(DEBUG)
|
||||
// B2G emulator debug is very, very slow and has problems dealing with realtime audio inputs
|
||||
mTimer->InitWithCallback(this, MediaEngine::DEFAULT_AUDIO_TIMER_MS*10,
|
||||
nsITimer::TYPE_REPEATING_PRECISE);
|
||||
#else
|
||||
mTimer->InitWithCallback(this, MediaEngine::DEFAULT_AUDIO_TIMER_MS,
|
||||
nsITimer::TYPE_REPEATING_PRECISE);
|
||||
#endif
|
||||
mState = kStarted;
|
||||
|
||||
return NS_OK;
|
||||
|
|
Загрузка…
Ссылка в новой задаче