Procházet zdrojové kódy

fix: ensure container is defined while attaching a track

For muted tracks, it is possible for undefined to get pushed
into the track's internal containers reference. The fix is
to immediately set the internal container variable in .attach()
to the passed in container value.
dev1
Leonard Kim před 8 roky
rodič
revize
b68b0079b3
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. 1
    1
      modules/RTC/JitsiTrack.js

+ 1
- 1
modules/RTC/JitsiTrack.js Zobrazit soubor

@@ -253,7 +253,7 @@ JitsiTrack.prototype._maybeFireTrackAttached = function(container) {
253 253
  *          library. That's the case when Temasys plugin is in use.
254 254
  */
255 255
 JitsiTrack.prototype.attach = function(container) {
256
-    let c;
256
+    let c = container;
257 257
 
258 258
     if (this.stream) {
259 259
         c = RTCUtils.attachMediaStream(container, this.stream);

Načítá se…
Zrušit
Uložit