mirror of
https://repo.dactyloidae.xyz/Dactyloidae/UXP.git
synced 2026-10-21 22:57:31 +09:00
Issue #2332 - Use the same path for passing on missed data to video sink, as during normal operation
https://bugzilla.mozilla.org/show_bug.cgi?id=1305949 part 2
This commit is contained in:
parent
580a231706
commit
a87f8cc7f7
1 changed files with 2 additions and 3 deletions
|
|
@ -2893,8 +2893,7 @@ SourceMediaStream::AddDirectTrackListenerImpl(already_AddRefed<DirectMediaStream
|
||||||
isVideo = track->GetType() == MediaSegment::VIDEO;
|
isVideo = track->GetType() == MediaSegment::VIDEO;
|
||||||
}
|
}
|
||||||
|
|
||||||
MediaStreamVideoSink* videoSink = listener->AsMediaStreamVideoSink();
|
if (track && isVideo && listener->AsMediaStreamVideoSink()) {
|
||||||
if (track && isVideo && videoSink) {
|
|
||||||
// Re-send missed VideoSegment to new added MediaStreamVideoSink.
|
// Re-send missed VideoSegment to new added MediaStreamVideoSink.
|
||||||
VideoSegment* trackSegment = static_cast<VideoSegment*>(track->GetSegment());
|
VideoSegment* trackSegment = static_cast<VideoSegment*>(track->GetSegment());
|
||||||
VideoSegment videoSegment;
|
VideoSegment videoSegment;
|
||||||
|
|
@ -2906,7 +2905,7 @@ SourceMediaStream::AddDirectTrackListenerImpl(already_AddRefed<DirectMediaStream
|
||||||
if (updateData) {
|
if (updateData) {
|
||||||
videoSegment.AppendSlice(*updateData->mData, 0, updateData->mData->GetDuration());
|
videoSegment.AppendSlice(*updateData->mData, 0, updateData->mData->GetDuration());
|
||||||
}
|
}
|
||||||
videoSink->SetCurrentFrames(videoSegment);
|
listener->NotifyRealtimeTrackData(Graph(), 0, videoSegment);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (track && (isAudio || isVideo)) {
|
if (track && (isAudio || isVideo)) {
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue