From b3ee3bc4a3a705d92541eb86bddb23423e4f2d24 Mon Sep 17 00:00:00 2001 From: Dan Toloudis Date: Fri, 7 Nov 2014 14:26:50 -0800 Subject: [PATCH] fix undefined source var Fix exception when source is not provided as an option --- src/js/media/html5.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/media/html5.js b/src/js/media/html5.js index 9171defcb8..b5821d59a7 100644 --- a/src/js/media/html5.js +++ b/src/js/media/html5.js @@ -36,7 +36,7 @@ vjs.Html5 = vjs.MediaTechController.extend({ // 1) Check if the source is new (if not, we want to keep the original so playback isn't interrupted) // 2) Check to see if the network state of the tag was failed at init, and if so, reset the source // anyway so the error gets fired. - if (source && (this.el_.currentSrc !== source.src) || (player.tag && player.tag.initNetworkState_ === 3)) { + if (source && ((this.el_.currentSrc !== source.src) || (player.tag && player.tag.initNetworkState_ === 3))) { this.el_.src = source.src; }