Backed out changeset 7545f9159a1b (bug 1294605)

CLOSED TREE
This commit is contained in:
Iris Hsiao 2016-10-26 17:54:40 +08:00
Родитель 750c49cf6f
Коммит ee5f311064
2 изменённых файлов: 1 добавлений и 17 удалений

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

@ -387,22 +387,6 @@ MediaStreamTrack::Clone()
return newStream->CloneDOMTrack(*this, mTrackID);
}
void
MediaStreamTrack::SetReadyState(MediaStreamTrackState aState)
{
MOZ_ASSERT(!(mReadyState == MediaStreamTrackState::Ended &&
aState == MediaStreamTrackState::Live),
"We don't support overriding the ready state from ended to live");
if (mReadyState == MediaStreamTrackState::Live &&
aState == MediaStreamTrackState::Ended &&
mSource) {
mSource->UnregisterSink(this);
}
mReadyState = aState;
}
void
MediaStreamTrack::NotifyEnded()
{

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

@ -297,7 +297,7 @@ public:
* Forces the ready state to a particular value, for instance when we're
* cloning an already ended track.
*/
void SetReadyState(MediaStreamTrackState aState);
void SetReadyState(MediaStreamTrackState aState) { mReadyState = aState; }
/**
* Notified by the MediaStreamGraph, through our owning MediaStream on the