Changeset 7144
- Timestamp:
- 02/09/10 00:01:28 (7 months ago)
- Location:
- trunk/liquidsoap/src/sources
- Files:
-
- 2 modified
-
harbor_input.ml (modified) (3 diffs)
-
http_source.ml (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/liquidsoap/src/sources/harbor_input.ml
r7122 r7144 36 36 inherit Generated.source 37 37 (Generator.create ~overfull:(`Drop_old max_ticks) `Undefined) 38 ~empty_on_abort:false ~bufferize 38 ~empty_on_abort:false ~bufferize as generated 39 39 40 40 val mutable relaying = false … … 195 195 method is_taken = relaying 196 196 197 method remaining = 198 if relaying then 199 if buffering then 0 else -1 200 else 201 generated#remaining 202 197 203 end 198 204 … … 304 310 let bufferize = Lang.to_float (List.assoc "buffer" p) in 305 311 let max = Lang.to_float (List.assoc "max" p) in 306 if bufferize > max then312 if bufferize >= max then 307 313 raise (Lang.Invalid_value 308 314 (List.assoc "max" p, -
trunk/liquidsoap/src/sources/http_source.ml
r7122 r7144 194 194 Generated.source 195 195 (Generator.create ~overfull:(`Drop_old max_ticks) `Undefined) 196 ~empty_on_abort:false ~bufferize 196 ~empty_on_abort:false ~bufferize as generated 197 197 198 198 method stype = Source.Fallible … … 448 448 method sleep = poll_should_stop <- true 449 449 450 method remaining = 451 if relaying then 452 if buffering then 0 else -1 453 else 454 generated#remaining 455 450 456 end 451 457 … … 546 552 let timeout = Lang.to_float (List.assoc "timeout" p) in 547 553 let max = Lang.to_float (List.assoc "max" p) in 548 if bufferize > max then554 if bufferize >= max then 549 555 raise (Lang.Invalid_value 550 556 (List.assoc "max" p,
