mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Various fixes
This commit is contained in:
@@ -463,22 +463,16 @@ public final class MediaEditorVideoExport {
|
||||
}
|
||||
|
||||
var duration = self.durationValue?.seconds
|
||||
var startOffset: Double?
|
||||
if case .image = self.subject {
|
||||
duration = nil
|
||||
}
|
||||
|
||||
if let trimRange = self.configuration.timeRange?.start {
|
||||
startOffset = trimRange.seconds
|
||||
}
|
||||
|
||||
self.composer = MediaEditorComposer(
|
||||
postbox: self.postbox,
|
||||
values: self.configuration.values,
|
||||
dimensions: self.configuration.composerDimensions,
|
||||
outputDimensions: self.configuration.dimensions,
|
||||
textScale: self.textScale,
|
||||
startOffset: startOffset,
|
||||
videoDuration: duration,
|
||||
additionalVideoDuration: self.additionalVideoDuration
|
||||
)
|
||||
|
||||
Reference in New Issue
Block a user