Skip to content

Commit f83e0b2

Browse files
committed
Extend tests.
1 parent a8a341a commit f83e0b2

File tree

2 files changed

+44
-12
lines changed

2 files changed

+44
-12
lines changed

video/private/mlt.rkt

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -226,9 +226,9 @@
226226
([producer _mlt-producer-pointer/null]
227227
[event _mlt-event/null]))
228228
(define-cstruct (_mlt-multitrack _mlt-producer)
229-
([list* _mlt-track-pointer]
230-
[size* _int]
231-
[count* _int]))
229+
([list* _mlt-track-pointer/null]
230+
[size* _int]
231+
[count* _int]))
232232

233233
;; Factory
234234
(define-mlt* mlt-factory-init (_fun _path -> [v : _mlt-repository/null]

video/tests/mlt.rkt

Lines changed: 41 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -52,10 +52,6 @@
5252

5353
(let ()
5454
(define prof (mlt-profile-init #f))
55-
(define prod
56-
(mlt-factory-producer prof #f "color:green"))
57-
(define props
58-
(mlt-producer-properties prod))
5955
(set-mlt-profile-description! prof #f)
6056
(set-mlt-profile-progressive! prof 1)
6157
(set-mlt-profile-sample-aspect-num! prof 1)
@@ -64,8 +60,44 @@
6460
(set-mlt-profile-display-aspect-den! prof 1)
6561
(set-mlt-profile-colorspace! prof 1)
6662
(set-mlt-profile-is-explicit! prof 1)
67-
(set-mlt-properties-child! props #f)
68-
(set-mlt-properties-local! props #f)
69-
(set-mlt-properties-close-object! props #f)
70-
(mlt-producer-close prod)
71-
(mlt-profile-close prof))
63+
(let ()
64+
(define prod
65+
(mlt-factory-producer prof #f "color:green"))
66+
(define props
67+
(mlt-producer-properties prod))
68+
(set-mlt-properties-child! props #f)
69+
(set-mlt-properties-local! props #f)
70+
(set-mlt-properties-close-object! props #f)
71+
(mlt-producer-close prod))
72+
(let ()
73+
(define track (mlt-tractor-new))
74+
(define mtt (mlt-tractor-multitrack track))
75+
(set-mlt-multitrack-list*! mtt #f)
76+
(set-mlt-multitrack-size*! mtt 0)
77+
(set-mlt-multitrack-count*! mtt 0)
78+
(mlt-tractor-close track))
79+
(let ()
80+
(define pl (mlt-playlist-init))
81+
(set-mlt-playlist-blank*! pl (mlt-playlist-blank* pl))
82+
(set-mlt-playlist-size*! pl 0)
83+
(set-mlt-playlist-count*! pl 0)
84+
(set-mlt-playlist-list*! pl (mlt-playlist-list* pl))
85+
(define prod (mlt-factory-producer prof #f "color:red"))
86+
(mlt-playlist-append pl prod)
87+
(define pinfo (mlt-playlist-get-clip-info pl 0))
88+
(set-mlt-playlist-clip-info-clip! pinfo 0)
89+
(set-mlt-playlist-clip-info-producer! pinfo (mlt-playlist-clip-info-producer pinfo))
90+
(set-mlt-playlist-clip-info-cut! pinfo #f)
91+
(set-mlt-playlist-clip-info-start! pinfo 0)
92+
(set-mlt-playlist-clip-info-resource! pinfo #f)
93+
(set-mlt-playlist-clip-info-frame-in! pinfo 0)
94+
(set-mlt-playlist-clip-info-frame-out! pinfo 0)
95+
(set-mlt-playlist-clip-info-frame-count! pinfo 0)
96+
(set-mlt-playlist-clip-info-length! pinfo 0)
97+
(set-mlt-playlist-clip-info-fps! pinfo 0.0)
98+
(set-mlt-playlist-clip-info-repeate! pinfo 0)
99+
(mlt-playlist-clear pl)
100+
(mlt-producer-close prod)
101+
(mlt-playlist-close pl)
102+
(mlt-profile-close prof)))
103+

0 commit comments

Comments
 (0)