зеркало из https://github.com/mozilla/gecko-dev.git
Родитель
750c49cf6f
Коммит
ee5f311064
|
@ -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
|
||||
|
|
Загрузка…
Ссылка в новой задаче