Fixes crash in LocalSSRCReplacement when null localDescription is passed.
This commit is contained in:
parent
b680ecd2ff
commit
466e7dcc91
|
@ -168,6 +168,11 @@ var LocalSSRCReplacement = {
|
||||||
if (!isEnabled)
|
if (!isEnabled)
|
||||||
return localDescription;
|
return localDescription;
|
||||||
|
|
||||||
|
if (!localDescription) {
|
||||||
|
console.warn("localDescription is null or undefined");
|
||||||
|
return localDescription;
|
||||||
|
}
|
||||||
|
|
||||||
// IF we have local video SSRC stored make sure it is replaced
|
// IF we have local video SSRC stored make sure it is replaced
|
||||||
// with old SSRC
|
// with old SSRC
|
||||||
if (localVideoSSRC) {
|
if (localVideoSSRC) {
|
||||||
|
|
Loading…
Reference in New Issue