misc fixes

This commit is contained in:
Tamius Han 2020-10-21 23:51:58 +02:00
parent 48167623ff
commit 7fb9aad0d0
2 changed files with 4 additions and 2 deletions

View File

@ -56,6 +56,7 @@ class VideoData {
this.restoreCrop();
this.videoDimensionsLoaded = true;
}
}
@ -123,7 +124,7 @@ class VideoData {
}
restoreCrop() {
this.logger.log('info', 'debug', '[VideoData::restoreCrop] Attempting to reset/restore aspect ratio.')
this.logger.log('info', 'debug', '[VideoData::restoreCrop] Attempting to reset aspect ratio.')
// if we have default crop set for this page, apply this.
// otherwise, reset crop
if (this.pageInfo.defaultCrop) {
@ -132,6 +133,7 @@ class VideoData {
this.resizer.reset();
try {
this.stopArDetection();
this.startArDetection();
} catch (e) {
this.logger.log('warn', 'debug', '[VideoData::restoreCrop] Autodetection not resumed. Reason:', e);

View File

@ -385,7 +385,7 @@ class Resizer {
}
restore() {
this.logger.log('info', 'debug', "[Resizer::restore] <rid:"+this.resizerId+"> attempting to restore aspect ratio", {'a_lastAr': this.lastAr} );
this.logger.log('info', 'debug', "[Resizer::restore] <rid:"+this.resizerId+"> attempting to restore aspect ratio", {'lastAr': this.lastAr} );
// this is true until we verify that css has actually been applied
if(this.lastAr.type === AspectRatio.Initial){