Fix Aard pausing/unpausing when not intended
This commit is contained in:
parent
54d53f1b91
commit
99df043b5f
@ -328,13 +328,15 @@ 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) {
|
||||||
|
if (this.lastAr.type === AspectRatioType.Automatic || this.lastAr.type === AspectRatioType.AutomaticUpdate) {
|
||||||
this.videoData?.arDetector?.unpause();
|
this.videoData?.arDetector?.unpause();
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
// do stretch thingy
|
// do stretch thingy
|
||||||
if (this.stretcher.mode === StretchType.NoStretch
|
if (this.stretcher.mode === StretchType.NoStretch
|
||||||
@ -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