[Pkg-voip-commits] [janus] 115/163: Ignore ontrack event if there's no stream info

Jonas Smedegaard dr at jones.dk
Sat Oct 28 01:22:20 UTC 2017


This is an automated email from the git hooks/post-receive script.

js pushed a commit to annotated tag debian/0.2.5-1
in repository janus.

commit 6e502dfb49d5877d0733e201d421b8bdb90e79a1
Author: Lorenzo Miniero <lminiero at gmail.com>
Date:   Thu Sep 14 18:27:39 2017 +0200

    Ignore ontrack event if there's no stream info
---
 html/janus.js          | 2 ++
 html/janus.nojquery.js | 2 ++
 2 files changed, 4 insertions(+)

diff --git a/html/janus.js b/html/janus.js
index 108d5da..4c8223e 100644
--- a/html/janus.js
+++ b/html/janus.js
@@ -1300,6 +1300,8 @@ function Janus(gatewayCallbacks) {
 		config.pc.ontrack = function(event) {
 			Janus.log("Handling Remote Track");
 			Janus.debug(event);
+			if(!event.streams)
+				return;
 			config.remoteStream = event.streams[0];
 			pluginHandle.onremotestream(config.remoteStream);
 		};
diff --git a/html/janus.nojquery.js b/html/janus.nojquery.js
index 121d43b..2a1aaac 100644
--- a/html/janus.nojquery.js
+++ b/html/janus.nojquery.js
@@ -1351,6 +1351,8 @@ function Janus(gatewayCallbacks) {
 		config.pc.ontrack = function(event) {
 			Janus.log("Handling Remote Track");
 			Janus.debug(event);
+			if(!event.streams)
+				return;
 			config.remoteStream = event.streams[0];
 			pluginHandle.onremotestream(config.remoteStream);
 		};

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-voip/janus.git



More information about the Pkg-voip-commits mailing list