Skip to content

Commit

Permalink
Bugfix _iosrtcVideoHandled flag when removing node
Browse files Browse the repository at this point in the history
  • Loading branch information
Jose Pereira committed Feb 4, 2016
1 parent d25fe27 commit 5273ed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions dist/cordova-plugin-iosrtc.js
Original file line number Diff line number Diff line change
Expand Up @@ -2436,6 +2436,7 @@ var debug = require('debug')('iosrtc:videoElementsHandler'),

// If this video element was previously handling a MediaStreamRenderer, release it.
releaseMediaStreamRenderer(node);
delete node._iosrtcVideoHandled;
} else {
for (j = 0; j < node.childNodes.length; j++) {
childNode = node.childNodes.item(j);
Expand Down
1 change: 1 addition & 0 deletions js/videoElementsHandler.js
Original file line number Diff line number Diff line change
Expand Up @@ -114,6 +114,7 @@ var debug = require('debug')('iosrtc:videoElementsHandler'),

// If this video element was previously handling a MediaStreamRenderer, release it.
releaseMediaStreamRenderer(node);
delete node._iosrtcVideoHandled;
} else {
for (j = 0; j < node.childNodes.length; j++) {
childNode = node.childNodes.item(j);
Expand Down

0 comments on commit 5273ed4

Please sign in to comment.