File tree Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Expand file tree Collapse file tree 1 file changed +15
-13
lines changed Original file line number Diff line number Diff line change 1
1
#lang racket/base
2
2
3
3
#|
4
- Copyright 2016-2017 Leif Andersen
4
+ Copyright 2016-2018 Leif Andersen
5
5
6
6
Licensed under the Apache License, Version 2.0 (the "License");
7
7
you may not use this file except in compliance with the License.
140
140
(define (finish-execution v)
141
141
(set-racket-log-callback #f ))
142
142
(will-register callback-executor callback-proc finish-execution)
143
- (when (and (not (equal? (getenv "FF_LOG " ) "stdout " )) (ffmpeg-installed?) (libvid-installed?))
144
- (set-racket-log-callback callback-proc)
145
- (av-log-set-callback ffmpeg-log-callback)
146
- (thread
147
- (λ ()
148
- (will-execute callback-executor)))
149
- (plumber-add-flush!
150
- (current-plumber)
151
- (λ (handler)
152
- (stop-ffmpeg-logging)))
153
- (void))
154
-
143
+ (unless (equal? (getenv "FF_LOG " ) "stdout " )
144
+ (av-log-set-callback #f )
145
+ (when (ffmpeg-installed?) (libvid-installed?)
146
+ (set-racket-log-callback callback-proc)
147
+ (av-log-set-callback ffmpeg-log-callback)
148
+ (thread
149
+ (λ ()
150
+ (will-execute callback-executor)))
151
+ (plumber-add-flush!
152
+ (current-plumber)
153
+ (λ (handler)
154
+ (stop-ffmpeg-logging)))
155
+ (void)))
156
+
155
157
;; Because portaudio has a nasty tendency to output a lot of garbadge to stdout, only
156
158
;; require it in situations where its actually needed.
157
159
(module* portaudio racket
You can’t perform that action at this time.
0 commit comments