Confirmed users
770
edits
| Line 222: | Line 222: | ||
} | } | ||
void | |||
MediaEngineWebRTCVideoSource::NotifyPull(MediaStreamGraph* aGraph, | |||
SourceMediaStream *aSource, | |||
TrackID aID, | |||
StreamTime aDesiredTime, | |||
TrackTicks &aLastEndTime) | |||
{ | |||
... | |||
if (delta > 0) { | |||
// nullptr images are allowed | |||
IntSize size(image ? mWidth : 0, image ? mHeight : 0); | |||
segment.AppendFrame(image.forget(), delta, size); | |||
// This can fail if either a) we haven't added the track yet, or b) | |||
// we've removed or finished the track. | |||
if (aSource->AppendToTrack(aID, &(segment))) { | |||
aLastEndTime = target; | |||
} | |||
} | |||
} | |||
</source> | </source> | ||