aboutsummaryrefslogtreecommitdiff
path: root/src/plugins
diff options
context:
space:
mode:
authordec05eba <dec05eba@protonmail.com>2021-08-07 21:21:07 +0200
committerdec05eba <dec05eba@protonmail.com>2021-08-07 21:21:07 +0200
commitcf841ceae019de89205212f5f0188717054c5510 (patch)
tree52afe090217c66941d4b317552c3295dbaa319b5 /src/plugins
parenteb89e4048642a4ebf73635730e2a0aa960e7ecdd (diff)
Youtube: attempt to fix seeking again
Diffstat (limited to 'src/plugins')
-rw-r--r--src/plugins/youtube/YoutubeMediaProxy.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/plugins/youtube/YoutubeMediaProxy.cpp b/src/plugins/youtube/YoutubeMediaProxy.cpp
index 90dedbf..c1c3c0b 100644
--- a/src/plugins/youtube/YoutubeMediaProxy.cpp
+++ b/src/plugins/youtube/YoutubeMediaProxy.cpp
@@ -258,6 +258,7 @@ namespace QuickMedia {
client_request_finished = true;
download_started = false;
throttle_started = false;
+ download_read_buffer_offset = 0;
const int64_t new_start_range = header_extract_start_range(client_request_buffer);
if(downloader_read_program.pid != -1) {
@@ -283,6 +284,7 @@ namespace QuickMedia {
download_header_sent = false;
download_header_remaining_sent = false;
download_header_written_offset = 0;
+ download_read_buffer_offset = 0;
}
YoutubeStaticMediaProxy::Error YoutubeStaticMediaProxy::update_download_program_status(bool client_disconnected, int64_t new_range_start, bool restart_download) {