#41: Metadata freeze
-------------------------+--------------------------------------------------
  Reporter:  Gilou       |       Owner:  admin    
      Type:  Bugs        |      Status:  new      
  Priority:  1           |   Milestone:           
 Component:  Liquidsoap  |     Version:  0.3.3+svn
Resolution:              |    Keywords:           
-------------------------+--------------------------------------------------
Comment (by Gilou):

 I patched as asked with this:

 {{{
 Index: sources/http_source.ml
 ===================================================================
 --- sources/http_source.ml        (r?vision 4665)
 +++ sources/http_source.ml        (copie de travail)
 @@ -92,7 +92,12 @@
          parse (String.sub s (close+1) ((String.length s)-close-1))
      with _ -> ()
    in
 -    if chunk = "" || chunk = !old_chunk then None else begin
 +    if chunk = "" || chunk = !old_chunk then
 +    begin
 +      Printf.printf "Old_chunk = chunk or chunk vide\n";
 +      None
 +    end
 +    else begin
        old_chunk := chunk ;
        parse chunk ;
        Some h
 @@ -149,6 +154,7 @@
                  if r < 0 then "" else begin
                    readcnt := !readcnt + r;
                    if !readcnt = metaint then begin
 +                    Printf.printf "Debut de parsing metadatas\n" ;
                      readcnt := 0;
                      match read_metadata socket with
                        | Some m -> insert_metadata m
 }}}

 Bug occured, nothing showed up in level 5, but I lost the "debug"
 output... gonna have to reproduce it once again, but this time I made sure
 I'll have the output...

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

Répondre à