Changeset 6645

Show
Ignore:
Timestamp:
06/18/09 17:11:29 (15 months ago)
Author:
metamorph68
Message:

Merged new command for strip_blank

Location:
branches/bugfix-0.9.1
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • branches/bugfix-0.9.1/CHANGES

    r6644 r6645  
    99 - Disconnect idle harbor sources after timeout has expired. 
    1010   Thanks to Roman Savrulin for reporting and fixing ! 
     11New:  
     12 - Get a node's striping status when stripping 
     13   blank with strip_blank (#260). 
    1114 
    12150.9.0 (01-03-2009) 
  • branches/bugfix-0.9.1/src/operators/noblank.ml

    r6344 r6645  
    120120  val mutable stripping = false 
    121121 
     122  val mutable ns = [] 
     123 
    122124  method stype = Fallible 
    123125  method is_ready = not stripping && source#is_ready 
     
    148150    if stripping && AFrame.is_partial memo then self#get_frame memo 
    149151 
    150   method output_get_ready = () 
     152  method output_get_ready =  
     153    if ns = [] then 
     154      ns <- Server.register [self#id] "strip_blank" ; 
     155    let status _ = string_of_bool stripping in 
     156    Server.add 
     157      ~ns "is_stripping" ~descr:"Check if the source is stripping." status  
     158 
    151159  method output_reset = () 
    152160  method is_active = true