]> git.sesse.net Git - cubemap/blobdiff - client.h
Support delivering fragments from the backlog; intended for HLS.
[cubemap] / client.h
index ed04bc02f888f85572364d1b363a7ce01b59175a..f1d14e65cf2cbc321770d069aeed8f93fc087f94 100644 (file)
--- a/client.h
+++ b/client.h
@@ -87,6 +87,10 @@ struct Client {
        // these negative values will be translated to real numbers.
        size_t stream_pos = 0;
 
+       // Position at which to end the stream (one-past-the-end, used for fragments).
+       // -1 means never to end; this is the common case.
+       size_t stream_pos_end = 0;
+
        // Number of bytes we've sent of data. Only relevant for SENDING_DATA.
        size_t bytes_sent = 0;