зеркало из https://github.com/mozilla/gecko-dev.git
Bug 1855369 - log underlying track when it exists;r=pehrsons
Differential Revision: https://phabricator.services.mozilla.com/D189548
This commit is contained in:
Родитель
7897c88c9e
Коммит
49558158fa
|
@ -334,8 +334,16 @@ void DOMMediaStream::AddTrack(MediaStreamTrack& aTrack) {
|
||||||
}
|
}
|
||||||
|
|
||||||
void DOMMediaStream::RemoveTrack(MediaStreamTrack& aTrack) {
|
void DOMMediaStream::RemoveTrack(MediaStreamTrack& aTrack) {
|
||||||
LOG(LogLevel::Info, ("DOMMediaStream %p Removing track %p (from track %p)",
|
if (static_cast<LogModule*>(gMediaStreamLog)->ShouldLog(LogLevel::Info)) {
|
||||||
this, &aTrack, aTrack.GetTrack()));
|
if (aTrack.Ended()) {
|
||||||
|
LOG(LogLevel::Info,
|
||||||
|
("DOMMediaStream %p Removing (ended) track %p", this, &aTrack));
|
||||||
|
} else {
|
||||||
|
LOG(LogLevel::Info,
|
||||||
|
("DOMMediaStream %p Removing track %p (from track %p)", this, &aTrack,
|
||||||
|
aTrack.GetTrack()));
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!mTracks.RemoveElement(&aTrack)) {
|
if (!mTracks.RemoveElement(&aTrack)) {
|
||||||
LOG(LogLevel::Debug,
|
LOG(LogLevel::Debug,
|
||||||
|
|
Загрузка…
Ссылка в новой задаче