]> git.sesse.net Git - cubemap/commitdiff
Fix 32-bit compilation issues.
authorSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 12 Sep 2018 17:58:33 +0000 (19:58 +0200)
committerSteinar H. Gunderson <sgunderson@bigfoot.com>
Wed, 12 Sep 2018 17:58:33 +0000 (19:58 +0200)
server.cpp
stream.h

index 61bdb3f698503a7dc3bdd9e8c838bc81532e682a..52f26db30b8b23598767d3182c18a3e441ee708d 100644 (file)
@@ -672,7 +672,7 @@ sending_header_or_short_response_again:
                        // 100 kB prebuffer but end up sending a 10 MB GOP.
                        assert(client->stream_pos == Client::STREAM_POS_AT_END);
                        assert(client->stream_pos_end == Client::STREAM_POS_NO_END);
-                       deque<size_t>::const_iterator starting_point_it =
+                       deque<uint64_t>::const_iterator starting_point_it =
                                lower_bound(stream->suitable_starting_points.begin(),
                                            stream->suitable_starting_points.end(),
                                            stream->bytes_received - stream->prebuffering_bytes);
index 8d249c37b9852e6fc57b782193abe4ba174f56c1..5d570fded6f6bec0a2387d12b845466d61eee1cf 100644 (file)
--- a/stream.h
+++ b/stream.h
@@ -115,7 +115,7 @@ struct Stream {
                double pts;
        };
        std::deque<FragmentStart> fragments;
-       size_t first_fragment_index = 0, discontinuity_counter = 0;
+       uint64_t first_fragment_index = 0, discontinuity_counter = 0;
 
        // HLS target duration, in seconds.
        unsigned hls_frag_duration = 6;