Skip to content

Jitsi Meet - Secure, Simple and Scalable Video Conferences that you use as a standalone app or embed in your web application.

Fixes an issue where the pinned video src was getting set when it shouldn't.

George Politis2004b6ef1837
diff --git a/videolayout.js b/videolayout.js
index 759ed586d5..345b996034 100644
--- a/videolayout.js
+++ b/videolayout.js
@@ -1609,7 +1609,12 @@ var VideoLayout = (function (my) {
// and VideoLayout.getLargeVideoResource methods.
var updateLargeVideo = (ssrc2jid[videoSrcToSsrc[selRemoteVideo.attr('src')]]
== ssrc2jid[videoSrcToSsrc[largeVideoState.newSrc]]);
- var updateFocusedVideoSrc = (selRemoteVideo.attr('src') == focusedVideoSrc);
+
+ // We should only update the focused video src if it's not a
+ // falsy value.
+ var updateFocusedVideoSrc
+ = focusedVideoSrc && focusedVideoSrc !== ''
+ && (selRemoteVideo.attr('src') == focusedVideoSrc);
var electedStreamUrl;
if (largeVideoState.preload_ssrc == primarySSRC)