From eb89e4048642a4ebf73635730e2a0aa960e7ecdd Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 7 Aug 2021 16:21:05 +0200 Subject: Fix seeking in youtube videos larger than 2gb, launch launcher when running qm without any args --- plugins/youtube/YoutubeMediaProxy.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'plugins') diff --git a/plugins/youtube/YoutubeMediaProxy.hpp b/plugins/youtube/YoutubeMediaProxy.hpp index d50d8df..cc797a9 100644 --- a/plugins/youtube/YoutubeMediaProxy.hpp +++ b/plugins/youtube/YoutubeMediaProxy.hpp @@ -24,7 +24,7 @@ namespace QuickMedia { virtual Error update() = 0; virtual bool get_address(std::string &address) = 0; - bool start_download(const std::string &media_url, ReadProgram &read_program, int range_start, bool include_header, bool is_livestream = false, int livestream_sequence = -1); + bool start_download(const std::string &media_url, ReadProgram &read_program, int64_t range_start, bool include_header, bool is_livestream = false, int livestream_sequence = -1); private: int rn = 0; int rbuf = 0; @@ -99,7 +99,7 @@ namespace QuickMedia { ReadProgram downloader_read_program; std::string youtube_media_url; int fd[2]; - int livestream_sequence_num = -1; + int64_t livestream_sequence_num = -1; std::string download_header; bool download_header_finished = false; bool download_header_remaining_sent = false; -- cgit v1.2.3