#36: blank processing eats metadatas
-------------------------+--------------------------------------------------
  Reporter:  toots       |       Owner:  toots    
      Type:  Bugs        |      Status:  assigned 
  Priority:  1           |   Milestone:           
 Component:  Liquidsoap  |     Version:  0.3.3+svn
Resolution:              |    Keywords:           
-------------------------+--------------------------------------------------
Comment (by mrpingouin):

 I'm not sure that your test is a good one, so I post another one. It is a
 standalone test, and uses only basic stuff. The idea is to stream blank,
 then a file. The blank will be stripped, and metadata will occur in the
 blank (thanks to the insert_metadata()) after the beginning of the
 stripping. If metadata is treated instantaneously (old-style) one should
 just see INSERT in the logs (label "lang") but a valid new implementation
 should show GOT TITLE="prout" two seconds after that, when stripping stops
 because of the beginning of the track.

 {{{
 # start with single = single("your favorite file")
 single = add([blank(),single])

 notify = fun (s) ->
   on_metadata(fun (m) -> log('GOT TITLE=#{m["title"]}'), s)

 s =
   insert_metadata(id="i",
                   sequence(merge=true,[blank(duration=10.),
                             single]))

 add_timeout(8.,{ log("INSERT")
                  ignore(execute('i.insert title="prout"'))
                  100000. })

 output.dummy(mksafe(notify(strip_blank(length=5.,id="XXX",s))))
 }}}

-- 
Ticket URL: <http://savonet.rastageeks.org/ticket/36#comment:2>
Savonet <http://savonet.rastageeks.org/>
Let's program our stream !

Répondre à