From f554030f3c4657e5ad6a1110dd5a5cc70d63fa15 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 29 Dec 2020 20:20:00 +0100 Subject: [PATCH 1/3] Don't set AR if video dimensions are undefined. --- src/ext/lib/video-transform/Resizer.js | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/ext/lib/video-transform/Resizer.js b/src/ext/lib/video-transform/Resizer.js index 3e0bc2c..7a5ec8f 100644 --- a/src/ext/lib/video-transform/Resizer.js +++ b/src/ext/lib/video-transform/Resizer.js @@ -144,6 +144,10 @@ class Resizer { if (this.destroyed) { return; } + + if (!this.video.videoWidth || !this.video.videoHeight) { + this.logger.log('warning', 'debug', '[Resizer::setAr] Video has no width or no height. This is not allowed. Aspect ratio will not be set.'); + } this.logger.log('info', 'debug', '[Resizer::setAr] trying to set ar. New ar:', ar) From af7833a372af704b117c4f3c2a2a5f766f099a74 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 29 Dec 2020 20:34:02 +0100 Subject: [PATCH 2/3] Changelog notes --- CHANGELOG.md | 1 + src/popup/panels/WhatsNewPanel.vue | 1 + 2 files changed, 2 insertions(+) diff --git a/CHANGELOG.md b/CHANGELOG.md index 624f407..e5af22b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -25,6 +25,7 @@ * Edge users using CWS version of the extension get a very aggressive warning when trying to use the extension with Edge * Fullscreen videos on streamable are aligned correctly ([#116](https://github.com/tamius-han/ultrawidify/issues/118)). * **[4.5.1.1]** Streamable fix broke old.reddit + RES on embeds from v.redd.it and streamable.com. We're now using an alternative implementation. ([#128](https://github.com/tamius-han/ultrawidify/issues/128)) +* **[4.5.1.2]** Fixed the issue where videos would sometimes get misaligned while using hybrid stretch. ([#125](https://github.com/tamius-han/ultrawidify/issues/125)) ### v4.5.0 (Current) diff --git a/src/popup/panels/WhatsNewPanel.vue b/src/popup/panels/WhatsNewPanel.vue index 8b917f8..5a82042 100644 --- a/src/popup/panels/WhatsNewPanel.vue +++ b/src/popup/panels/WhatsNewPanel.vue @@ -23,6 +23,7 @@
  • [4.5.1.1] Streamable fix broke old.reddit + RES on embeds from v.redd.it and streamable.com. We're now using an alternative implementation. (#128) + [4.5.1.2] Fixed the issue where videos would sometimes get misaligned while using hybrid stretch. (#125)
  • From 066b74e1ac30072e10ea714ffeaa13019e7d7325 Mon Sep 17 00:00:00 2001 From: Tamius Han Date: Tue, 29 Dec 2020 20:34:59 +0100 Subject: [PATCH 3/3] Version bump --- package-lock.json | 2 +- package.json | 2 +- src/manifest.json | 2 +- 3 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index 3da715c..e51b632 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "ultrawidify", - "version": "4.5.0", + "version": "4.5.1", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 7da10e4..a46fe5a 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "ultrawidify", - "version": "4.5.0", + "version": "4.5.1", "description": "Aspect ratio fixer for youtube and other sites, with automatic aspect ratio detection. Supports ultrawide and other ratios.", "author": "Tamius Han ", "scripts": { diff --git a/src/manifest.json b/src/manifest.json index 4a3244f..75454b1 100644 --- a/src/manifest.json +++ b/src/manifest.json @@ -2,7 +2,7 @@ "manifest_version": 2, "name": "Ultrawidify", "description": "Removes black bars on ultrawide videos and offers advanced options to fix aspect ratio.", - "version": "4.5.1.1", + "version": "4.5.1.2", "applications": { "gecko": { "id": "{cf02b1a7-a01a-4e37-a609-516a283f1ed3}"