зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1285887 - MediaDecoder::PlayStateStr() should call ToPlayStateStr() to eliminate redundant code. r=bechen
MozReview-Commit-ID: pwhafUHxOL --HG-- extra : rebase_source : c43ecb4bf00fb31ccb07f4efac5a16e51cfe91f4
This commit is contained in:
Родитель
0d2c8ddbb2
Коммит
2dc3a59bbe
|
@ -988,15 +988,7 @@ const char*
|
|||
MediaDecoder::PlayStateStr()
|
||||
{
|
||||
MOZ_ASSERT(NS_IsMainThread());
|
||||
switch (mPlayState) {
|
||||
case PLAY_STATE_START: return "PLAY_STATE_START";
|
||||
case PLAY_STATE_LOADING: return "PLAY_STATE_LOADING";
|
||||
case PLAY_STATE_PAUSED: return "PLAY_STATE_PAUSED";
|
||||
case PLAY_STATE_PLAYING: return "PLAY_STATE_PLAYING";
|
||||
case PLAY_STATE_ENDED: return "PLAY_STATE_ENDED";
|
||||
case PLAY_STATE_SHUTDOWN: return "PLAY_STATE_SHUTDOWN";
|
||||
default: return "INVALID_PLAY_STATE";
|
||||
}
|
||||
return ToPlayStateStr(mPlayState);
|
||||
}
|
||||
|
||||
void
|
||||
|
@ -1365,8 +1357,7 @@ MediaDecoder::ChangeState(PlayState aState)
|
|||
return;
|
||||
}
|
||||
|
||||
DECODER_LOG("ChangeState %s => %s",
|
||||
ToPlayStateStr(mPlayState), ToPlayStateStr(aState));
|
||||
DECODER_LOG("ChangeState %s => %s", PlayStateStr(), ToPlayStateStr(aState));
|
||||
mPlayState = aState;
|
||||
|
||||
if (mPlayState == PLAY_STATE_PLAYING) {
|
||||
|
|
Загрузка…
Ссылка в новой задаче