deps on define-return and let-assert + library messages
This commit is contained in:
+20
-15
@@ -6,6 +6,8 @@
|
||||
(for-syntax racket/base)
|
||||
"private/utils.rkt"
|
||||
"private/cstruct-helper.rkt"
|
||||
let-assert
|
||||
define-return
|
||||
)
|
||||
|
||||
(provide fmpg-init
|
||||
@@ -485,27 +487,30 @@
|
||||
|
||||
(define-syntax check-support
|
||||
(syntax-rules ()
|
||||
((_ from until lib)
|
||||
(let ((major-version (car (ffmpeg-version lib))))
|
||||
(cond
|
||||
((or (< major-version from) (> major-version until))
|
||||
(error
|
||||
(format "Unsupported major version of ffmpeg library ~a: ~a (~a).\nSupported range: ~a - ~a"
|
||||
'lib major-version (ffmpeg-version-string lib) from until)))
|
||||
(else
|
||||
(info-sound "Supported ffmpeg library ~a - version ~a between ~a and ~a"
|
||||
lib (ffmpeg-version-string lib) from until)
|
||||
)
|
||||
((_ lib version-hash)
|
||||
(let ((from (car (hash-ref lib version-hash)))
|
||||
(until (cadr (hash-ref lib version-hash))))
|
||||
(let ((major-version (car (ffmpeg-version lib))))
|
||||
(cond
|
||||
((or (< major-version from) (> major-version until))
|
||||
(error
|
||||
(format "Unsupported major version of ffmpeg library ~a: ~a (~a).\nSupported range: ~a - ~a"
|
||||
'lib major-version (ffmpeg-version-string lib) from until)))
|
||||
(else
|
||||
(info-sound "Supported ffmpeg library ~a - version ~a between ~a and ~a"
|
||||
lib (ffmpeg-version-string lib) from until)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
)
|
||||
|
||||
(check-support 58 60 'avutil)
|
||||
(check-support 60 62 'avcodec)
|
||||
(check-support 60 62 'avformat)
|
||||
(check-support 4 6 'swresample)
|
||||
(check-support 'avutil valid-ffmpeg-versions)
|
||||
(check-support 'avcodec valid-ffmpeg-versions)
|
||||
(check-support 'avformat valid-ffmpeg-versions)
|
||||
(check-support 'swresample valid-ffmpeg-versions)
|
||||
|
||||
;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
|
||||
;; Constants
|
||||
|
||||
Reference in New Issue
Block a user