Skip to content

Commit

Permalink
Merge pull request HHK1#66 from heoblitz/master
Browse files Browse the repository at this point in the history
Change type casting CMTime to NSValue using NSValue constructor
  • Loading branch information
HHK1 authored and salimbraksa committed Sep 5, 2020
2 parents c851e4e + f4dd7d0 commit a754b32
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
1 change: 1 addition & 0 deletions PryntTrimmerView
Submodule PryntTrimmerView added at da55e8
8 changes: 4 additions & 4 deletions PryntTrimmerView.podspec
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

Pod::Spec.new do |s|
s.name = 'PryntTrimmerView'
s.version = '4.0.0'
s.version = '4.0.2'
s.summary = 'A set of tools written in swift to help you trim and crop a video.'

s.description = <<-DESC
Expand All @@ -17,10 +17,10 @@ component that indicates the portion of the video selected, thanks to image thum
Second tool is a crop view, to preview a video and select the part of the video you want to crop.
DESC

s.homepage = 'https://github.com/HHK1/PryntTrimmerView'
s.homepage = 'https://github.com/BeautyExchange/PryntTrimmerView'
s.license = { :type => 'MIT', :file => 'LICENSE' }
s.author = { 'henryhuck@hotmail.fr' => 'henryhuck@hotmail.fr' }
s.source = { :git => 'https://github.com/HHK1/PryntTrimmerView.git', :tag => s.version.to_s }
s.author = { 'salim.braksa@gmail.com' => 'salim.braksa@gmail.com' }
s.source = { :git => 'https://github.com/BeautyExchange/PryntTrimmerView.git', :tag => s.version.to_s }
s.ios.deployment_target = '9.0'
s.source_files = 'Sources/PryntTrimmerView/**/*'
s.swift_version = '5.0'
Expand Down
2 changes: 1 addition & 1 deletion Sources/PryntTrimmerView/ThumbSelectorView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ public class ThumbSelectorView: AVAssetTimeSelector {

private func generateThumbnailImage(for time: CMTime) {

generator?.generateCGImagesAsynchronously(forTimes: [time as NSValue],
generator?.generateCGImagesAsynchronously(forTimes: [NSValue(time: time)],
completionHandler: { (_, image, _, _, _) in
guard let image = image else {
return
Expand Down

0 comments on commit a754b32

Please sign in to comment.