зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1276569. Part 1 - remove null checks. r=kinetik.
MozReview-Commit-ID: IpX4B2GTr9k --HG-- extra : rebase_source : 806b4eff3b6e43964bb6fd8d9e7a735a6bcfa5e6
This commit is contained in:
Родитель
797bf55dc0
Коммит
01902c9e8e
|
@ -423,9 +423,6 @@ void
|
|||
AudioStream::StartUnlocked()
|
||||
{
|
||||
mMonitor.AssertCurrentThreadOwns();
|
||||
if (!mCubebStream) {
|
||||
return;
|
||||
}
|
||||
|
||||
if (mState == INITIALIZED) {
|
||||
mState = STARTED;
|
||||
|
@ -453,7 +450,7 @@ AudioStream::Pause()
|
|||
return;
|
||||
}
|
||||
|
||||
if (!mCubebStream || (mState != STARTED && mState != RUNNING)) {
|
||||
if (mState != STARTED && mState != RUNNING) {
|
||||
mState = STOPPED; // which also tells async OpenCubeb not to start, just init
|
||||
return;
|
||||
}
|
||||
|
@ -472,7 +469,7 @@ void
|
|||
AudioStream::Resume()
|
||||
{
|
||||
MonitorAutoLock mon(mMonitor);
|
||||
if (!mCubebStream || mState != STOPPED) {
|
||||
if (mState != STOPPED) {
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -523,7 +520,7 @@ AudioStream::GetPositionInFramesUnlocked()
|
|||
{
|
||||
mMonitor.AssertCurrentThreadOwns();
|
||||
|
||||
if (!mCubebStream || mState == ERRORED) {
|
||||
if (mState == ERRORED) {
|
||||
return -1;
|
||||
}
|
||||
|
||||
|
|
Загрузка…
Ссылка в новой задаче