File: image_decoder_duration.liq

package info (click to toggle)
liquidsoap 2.4.2-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 12,844 kB
  • sloc: ml: 74,136; javascript: 27,320; ansic: 505; sh: 139; xml: 114; lisp: 96; makefile: 26
file content (16 lines) | stat: -rw-r--r-- 264 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
s = single("annotate:duration=0.2:test-image.png")

track_count = ref(0)

s.on_track(
  synchronous=true,
  fun (_) ->
    begin
      ref.incr(track_count)
      if track_count() > 2 then test.pass() end
    end
)

s = (s : source(video=canvas))

output.dummy(s)