Bug 1471588 - Add details to SourceMediaStream and TrackUnionStream tracing. r=padenot

MozReview-Commit-ID: 38UoVtXILBk

--HG--
extra : rebase_source : 0665eb25e3717caa6635cfce3d8e028a252d022d
This commit is contained in:
Andreas Pehrson 2018-06-27 18:30:13 +02:00
parent 9c80f60f71
commit b06b413c9e
2 changed files with 7 additions and 2 deletions

View File

@ -2764,7 +2764,7 @@ SourceMediaStream::SetPullEnabled(bool aEnabled)
bool
SourceMediaStream::PullNewData(StreamTime aDesiredUpToTime)
{
TRACE_AUDIO_CALLBACK();
TRACE_AUDIO_CALLBACK_COMMENT("SourceMediaStream %p", this);
MutexAutoLock lock(mMutex);
if (!mPullEnabled || mFinished) {
return false;

View File

@ -68,7 +68,7 @@ TrackUnionStream::TrackUnionStream()
}
void TrackUnionStream::ProcessInput(GraphTime aFrom, GraphTime aTo, uint32_t aFlags)
{
TRACE();
TRACE_AUDIO_CALLBACK_COMMENT("TrackUnionStream %p", this);
if (IsFinishedOnGraphThread()) {
return;
}
@ -290,6 +290,11 @@ TrackUnionStream::TrackUnionStream()
bool* aOutputTrackFinished)
{
TrackMapEntry* map = &mTrackMap[aMapIndex];
TRACE_AUDIO_CALLBACK_COMMENT("Input stream %p track %i -> TrackUnionStream %p track %i",
map->mInputPort->GetSource(),
map->mInputTrackID,
this,
map->mOutputTrackID);
StreamTracks::Track* outputTrack = mTracks.FindTrack(map->mOutputTrackID);
MOZ_ASSERT(outputTrack && !outputTrack->IsEnded(), "Can't copy to ended track");