Bug 1208371 - Track original track in MediaStreamTrack clones. r=jib

MozReview-Commit-ID: HycPCeI2v3U

--HG--
extra : rebase_source : 304bd198259c6e793d6bba9b02221e684ab16c5c
This commit is contained in:
Andreas Pehrson 2016-01-05 10:16:21 +08:00
Родитель bc5d78268a
Коммит 4f3a6bae57
2 изменённых файлов: 2 добавлений и 1 удалений

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

@ -47,7 +47,7 @@ MediaStreamTrack::~MediaStreamTrack()
} }
NS_IMPL_CYCLE_COLLECTION_INHERITED(MediaStreamTrack, DOMEventTargetHelper, NS_IMPL_CYCLE_COLLECTION_INHERITED(MediaStreamTrack, DOMEventTargetHelper,
mOwningStream) mOwningStream, mOriginalTrack)
NS_IMPL_ADDREF_INHERITED(MediaStreamTrack, DOMEventTargetHelper) NS_IMPL_ADDREF_INHERITED(MediaStreamTrack, DOMEventTargetHelper)
NS_IMPL_RELEASE_INHERITED(MediaStreamTrack, DOMEventTargetHelper) NS_IMPL_RELEASE_INHERITED(MediaStreamTrack, DOMEventTargetHelper)

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

@ -74,6 +74,7 @@ protected:
RefPtr<DOMMediaStream> mOwningStream; RefPtr<DOMMediaStream> mOwningStream;
TrackID mTrackID; TrackID mTrackID;
RefPtr<MediaStreamTrack> mOriginalTrack;
nsString mID; nsString mID;
nsString mLabel; nsString mLabel;
bool mEnded; bool mEnded;