mirror of
https://github.com/mozilla/gecko-dev.git
synced 2024-12-11 08:13:35 +00:00
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:
parent
9c80f60f71
commit
b06b413c9e
@ -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;
|
||||
|
@ -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");
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user