Skip to content
This repository has been archived by the owner on Feb 22, 2018. It is now read-only.

[transcoder] Copy the least prioritized stream to a tmp-stream for later usage on timeouts. #1

Open
Fusl opened this issue Jan 23, 2014 · 0 comments

Comments

@Fusl
Copy link
Owner

Fusl commented Jan 23, 2014

When the source function waits for a timeout to occur (say 10 seconds), there will be a gap on the output stream of 10 seconds then. To omit this, we want to copy the least prioritized running, readable and stable stream to a buffer for each mount and on each byte which has been read truncate the buffer to 0. When the timeout occurs, the buffer will be filled with X seconds (X is the time how long to wait until the timeout occurs) and can then be copied very fast into the mount input. But watch out that this must skip the overflow unsyncdiscard check! (Maybe temporarily disable the mounts[mountpoint].unsyncdiscard parameter and after filling it with the buffer data, enable again?)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

1 participant