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 61bdb3f..52f26db 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 8d249c3..5d570fd 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;