From cf841ceae019de89205212f5f0188717054c5510 Mon Sep 17 00:00:00 2001 From: dec05eba Date: Sat, 7 Aug 2021 21:21:07 +0200 Subject: Youtube: attempt to fix seeking again --- src/plugins/youtube/YoutubeMediaProxy.cpp | 2 ++ 1 file changed, 2 insertions(+) (limited to 'src/plugins') 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) { -- cgit v1.2.3