Selaa lähdekoodia

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 8 vuotta sitten
vanhempi
commit
b68b0079b3
1 muutettua tiedostoa jossa 1 lisäystä ja 1 poistoa
  1. 1
    1
      modules/RTC/JitsiTrack.js

+ 1
- 1
modules/RTC/JitsiTrack.js Näytä tiedosto

@@ -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);

Loading…
Peruuta
Tallenna