diff options
author | dec05eba <dec05eba@protonmail.com> | 2021-08-07 16:21:05 +0200 |
---|---|---|
committer | dec05eba <dec05eba@protonmail.com> | 2021-08-07 16:21:33 +0200 |
commit | eb89e4048642a4ebf73635730e2a0aa960e7ecdd (patch) | |
tree | 14158bcdd86a82ce746e1fce583bfaa192f18f4e /plugins | |
parent | fc4d55f8464779e0912be771973ebd94a27df951 (diff) |
Fix seeking in youtube videos larger than 2gb, launch launcher when running qm without any args
Diffstat (limited to 'plugins')
-rw-r--r-- | plugins/youtube/YoutubeMediaProxy.hpp | 4 |
1 files changed, 2 insertions, 2 deletions
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; |