# HG changeset patch # User Andreas Pehrson # Date 1520356298 -3600 # Tue Mar 06 18:11:38 2018 +0100 # Node ID 42c6ec43f7829aa95692c83cbb8a75e77bd9dd33 # Parent 90d517197d78093e49d0cde88d8ea13686e5b903 Bug 1280099 - Retain image size after stopping MediaEngineDefaultVideoSource. r=jib MozReview-Commit-ID: Kacol64Jo0F diff --git a/dom/media/webrtc/MediaEngineDefault.cpp b/dom/media/webrtc/MediaEngineDefault.cpp --- a/dom/media/webrtc/MediaEngineDefault.cpp +++ b/dom/media/webrtc/MediaEngineDefault.cpp @@ -344,17 +344,17 @@ MediaEngineDefaultVideoSource::Pull(cons MOZ_ASSERT(mTrackID == aTrackID); image = mImage; } } StreamTime delta = aDesiredTime - aStream->GetEndOfAppendedData(aTrackID); if (delta > 0) { // nullptr images are allowed - IntSize size(image ? mOpts.mWidth : 0, image ? mOpts.mHeight : 0); + IntSize size(mOpts.mWidth, mOpts.mHeight); segment.AppendFrame(image.forget(), delta, size, aPrincipalHandle); // This can fail if either a) we haven't added the track yet, or b) // we've removed or finished the track. aStream->AppendToTrack(aTrackID, &segment); } } /**