Преглед на файлове

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 години
родител
ревизия
b68b0079b3
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1
    1
      modules/RTC/JitsiTrack.js

+ 1
- 1
modules/RTC/JitsiTrack.js Целия файл

@@ -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…
Отказ
Запис