From c77fa690bda92c943f5f13fabf62bb3c2c8aa91d Mon Sep 17 00:00:00 2001 From: Simon Eisenmann Date: Mon, 4 Jan 2016 18:46:10 +0100 Subject: [PATCH] Improved codec check to include undefined. --- static/js/mediastream/utils.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/static/js/mediastream/utils.js b/static/js/mediastream/utils.js index 619151b9..8872b90a 100644 --- a/static/js/mediastream/utils.js +++ b/static/js/mediastream/utils.js @@ -233,7 +233,7 @@ define([], function() { // The format of |codec| is 'NAME/RATE', e.g. 'opus/48000'. function maybePreferCodec(sdp, type, dir, codec) { var str = type + ' ' + dir + ' codec'; - if (codec === '') { + if (!codec) { trace('No preference on ' + str + '.'); return sdp; }