Browse Source

Improved codec check to include undefined.

pull/247/head
Simon Eisenmann 10 years ago
parent
commit
c77fa690bd
  1. 2
      static/js/mediastream/utils.js

2
static/js/mediastream/utils.js

@ -233,7 +233,7 @@ define([], function() { @@ -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;
}

Loading…
Cancel
Save