Fix Aard pausing/unpausing when not intended
This commit is contained in:
parent
54d53f1b91
commit
99df043b5f
@ -328,11 +328,13 @@ class Resizer {
|
|||||||
// * ar.type is auto, but stretch is set to basic basic stretch
|
// * ar.type is auto, but stretch is set to basic basic stretch
|
||||||
//
|
//
|
||||||
// unpause when using other modes
|
// unpause when using other modes
|
||||||
if (ar.type !== AspectRatioType.Automatic || this.stretcher.mode === StretchType.Basic) {
|
if ((ar.type !== AspectRatioType.Automatic && ar.type !== AspectRatioType.AutomaticUpdate) || this.stretcher.mode === StretchType.Basic) {
|
||||||
this.videoData?.arDetector?.pause();
|
this.videoData?.arDetector?.pause();
|
||||||
} else {
|
} else {
|
||||||
if (this.lastAr.type === AspectRatioType.Automatic) {
|
if (ar.type !== AspectRatioType.AutomaticUpdate) {
|
||||||
this.videoData?.arDetector?.unpause();
|
if (this.lastAr.type === AspectRatioType.Automatic || this.lastAr.type === AspectRatioType.AutomaticUpdate) {
|
||||||
|
this.videoData?.arDetector?.unpause();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -490,7 +492,6 @@ class Resizer {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
this.videoAlignment = {
|
this.videoAlignment = {
|
||||||
x: videoAlignmentX ?? VideoAlignmentType.Default,
|
x: videoAlignmentX ?? VideoAlignmentType.Default,
|
||||||
y: videoAlignmentY ?? VideoAlignmentType.Default
|
y: videoAlignmentY ?? VideoAlignmentType.Default
|
||||||
|
Loading…
Reference in New Issue
Block a user