Don't set AR if video dimensions are undefined.
This commit is contained in:
parent
485a5c13f0
commit
f554030f3c
@ -144,6 +144,10 @@ class Resizer {
|
|||||||
if (this.destroyed) {
|
if (this.destroyed) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (!this.video.videoWidth || !this.video.videoHeight) {
|
||||||
|
this.logger.log('warning', 'debug', '[Resizer::setAr] <rid:'+this.resizerId+'> Video has no width or no height. This is not allowed. Aspect ratio will not be set.');
|
||||||
|
}
|
||||||
|
|
||||||
this.logger.log('info', 'debug', '[Resizer::setAr] <rid:'+this.resizerId+'> trying to set ar. New ar:', ar)
|
this.logger.log('info', 'debug', '[Resizer::setAr] <rid:'+this.resizerId+'> trying to set ar. New ar:', ar)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user